diff options
author | typebrook <typebrook@gmail.com> | 2020-02-09 17:05:36 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-02-09 17:05:36 +0800 |
commit | d69df73fbc97cadeabe0f07cd2d78163afd421b8 (patch) | |
tree | e798534c870feaf3490b77a08d748103a0de6ff7 | |
parent | a34ed0fd1d06df20630931b04c9e576e08563b7b (diff) |
update
-rwxr-xr-x | scripts/gist | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/gist b/scripts/gist index 96ba2d6..29bb1e1 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -191,6 +191,7 @@ _ask_token() { | |||
191 | # check configuration is fine with user setting | 191 | # check configuration is fine with user setting |
192 | _validate_config(){ | 192 | _validate_config(){ |
193 | source $CONFIG 2> /dev/null | 193 | source $CONFIG 2> /dev/null |
194 | [[ $1 =~ ^(c|config|h|help|u|user|update|version) ]] && return 0 | ||
194 | if [[ -z $user ]]; then | 195 | if [[ -z $user ]]; then |
195 | echo 'Hi fellow! To access your gists, I need your Github username' | 196 | echo 'Hi fellow! To access your gists, I need your Github username' |
196 | echo "Also a personal token with scope which allows "gist"!'" | 197 | echo "Also a personal token with scope which allows "gist"!'" |