aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gist
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-02-07 12:56:24 +0800
committertypebrook <typebrook@gmail.com>2020-02-07 12:56:24 +0800
commit8213c4ec0b6c37bf2ef62f9d3f0a15ba5ce08ced (patch)
treea5f38c2c4d82a8890a63f791c568e7711037ad2d /scripts/gist
parent463004df769a2bae5cfea5f85c262fc13c70fbbe (diff)
update
Diffstat (limited to 'scripts/gist')
-rwxr-xr-xscripts/gist3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/gist b/scripts/gist
index 1222e82..ee1ef5b 100755
--- a/scripts/gist
+++ b/scripts/gist
@@ -122,8 +122,6 @@ _apply_config() {
122 INDEX=$folder/index; [[ -e $INDEX ]] || touch $INDEX 122 INDEX=$folder/index; [[ -e $INDEX ]] || touch $INDEX
123} 123}
124 124
125_apply_config "$@" || exit 1
126
127# This function determines which http get tool the system has installed and returns an error if there isnt one 125# This function determines which http get tool the system has installed and returns an error if there isnt one
128getConfiguredClient() { 126getConfiguredClient() {
129 if command -v curl &>/dev/null; then 127 if command -v curl &>/dev/null; then
@@ -465,6 +463,7 @@ usage() {
465 sed -E -n ' /^$/ q; 7,$ s/^# //p' $0 463 sed -E -n ' /^$/ q; 7,$ s/^# //p' $0
466} 464}
467 465
466_apply_config "$@" || exit 1
468getConfiguredClient 467getConfiguredClient
469if [[ $init ]]; then _update; exit 0; fi 468if [[ $init ]]; then _update; exit 0; fi
470case "$1" in 469case "$1" in