aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gist
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gist')
-rwxr-xr-xscripts/gist6
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