From 8213c4ec0b6c37bf2ef62f9d3f0a15ba5ce08ced Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 7 Feb 2020 12:56:24 +0800 Subject: update --- scripts/gist | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index 1222e82..ee1ef5b 100755 --- a/scripts/gist +++ b/scripts/gist @@ -122,8 +122,6 @@ _apply_config() { INDEX=$folder/index; [[ -e $INDEX ]] || touch $INDEX } -_apply_config "$@" || exit 1 - # This function determines which http get tool the system has installed and returns an error if there isnt one getConfiguredClient() { if command -v curl &>/dev/null; then @@ -465,6 +463,7 @@ usage() { sed -E -n ' /^$/ q; 7,$ s/^# //p' $0 } +_apply_config "$@" || exit 1 getConfiguredClient if [[ $init ]]; then _update; exit 0; fi case "$1" in -- cgit v1.2.3-70-g09d2