diff options
author | typebrook <typebrook@gmail.com> | 2020-02-09 16:15:35 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-02-09 16:15:35 +0800 |
commit | a34ed0fd1d06df20630931b04c9e576e08563b7b (patch) | |
tree | 3db01f42a3e05fb29bf94d1957a5d6a4f8f3ca81 /scripts/gist | |
parent | 3cdd555410c86e40276935696a6925204c2db4a7 (diff) |
update
Diffstat (limited to 'scripts/gist')
-rwxr-xr-x | scripts/gist | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gist b/scripts/gist index 2a74cdb..96ba2d6 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -190,8 +190,8 @@ _ask_token() { | |||
190 | 190 | ||
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 || true | 193 | source $CONFIG 2> /dev/null |
194 | if [[ ! -e $CONFIG || -z $user ]]; then | 194 | if [[ -z $user ]]; then |
195 | echo 'Hi fellow! To access your gists, I need your Github username' | 195 | echo 'Hi fellow! To access your gists, I need your Github username' |
196 | echo "Also a personal token with scope which allows "gist"!'" | 196 | echo "Also a personal token with scope which allows "gist"!'" |
197 | echo | 197 | echo |
@@ -251,7 +251,7 @@ _show_list() { | |||
251 | echo -e "$(printf "% 3s" $index)" $link $name $extra $description \ | 251 | echo -e "$(printf "% 3s" $index)" $link $name $extra $description \ |
252 | | cut -c -$(tput cols) | 252 | | cut -c -$(tput cols) |
253 | done | 253 | done |
254 | echo -e '\nrun "gist help" or "gist h" for more details' > /dev/tty | 254 | echo -e '\nrun "gist fetch" to update gists or "gist help" for more details' > /dev/tty |
255 | } | 255 | } |
256 | 256 | ||
257 | # TODO support filenames, file contents | 257 | # TODO support filenames, file contents |