aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-02-11 12:32:11 +0800
committertypebrook <typebrook@gmail.com>2020-02-11 12:32:11 +0800
commitbdd46dc8c47e79ddc6ce5958a8b6123cce43b5f5 (patch)
treea2f2487a533a423a36f7b8e6aa917baea00f83d9
parent9f6f2e184e91281878f931b8794c4c3bbc6bcedf (diff)
update
-rwxr-xr-xscripts/gist2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist
index 291e513..07dc725 100755
--- a/scripts/gist
+++ b/scripts/gist
@@ -370,7 +370,7 @@ _gist_id() {
370 GIST_ID=$( (grep -hs '' $INDEX || true) | sed -n -e "/^$1 / p" | cut -d' ' -f2 | sed -E -e 's#.*/##') 370 GIST_ID=$( (grep -hs '' $INDEX || true) | sed -n -e "/^$1 / p" | cut -d' ' -f2 | sed -E -e 's#.*/##')
371 if [[ -z $GIST_ID ]]; then 371 if [[ -z $GIST_ID ]]; then
372 echo -e "Not a valid index: \e[31m$1\e[0m" 372 echo -e "Not a valid index: \e[31m$1\e[0m"
373 echo Use the index in the first column instead: 373 echo 'Use the index in the first column instead (like 1 or s1):'
374 echo 374 echo
375 _show_list 375 _show_list
376 return 1 376 return 1