diff options
author | typebrook <typebrook@gmail.com> | 2020-02-07 12:56:24 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-02-07 12:56:24 +0800 |
commit | 8213c4ec0b6c37bf2ef62f9d3f0a15ba5ce08ced (patch) | |
tree | a5f38c2c4d82a8890a63f791c568e7711037ad2d /scripts/gist | |
parent | 463004df769a2bae5cfea5f85c262fc13c70fbbe (diff) |
update
Diffstat (limited to 'scripts/gist')
-rwxr-xr-x | scripts/gist | 3 |
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 |
128 | getConfiguredClient() { | 126 | getConfiguredClient() { |
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 | ||
468 | getConfiguredClient | 467 | getConfiguredClient |
469 | if [[ $init ]]; then _update; exit 0; fi | 468 | if [[ $init ]]; then _update; exit 0; fi |
470 | case "$1" in | 469 | case "$1" in |