aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-04-01 09:32:35 +0800
committertypebrook <typebrook@gmail.com>2020-04-01 09:32:35 +0800
commit1c7b1a1b47dd04d97dc4fad87c4866a0ba2e99aa (patch)
tree4df8131569aaddd52c936482a58fb8450c59ab24
parent239f6431f32dcf9f1368283daf0d65da49ef8e20 (diff)
Refactor code
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index 0c7a5af..d4071da 100755
--- a/gist
+++ b/gist
@@ -480,7 +480,7 @@ _goto_gist() {
480 echo "$folder/$GIST_ID" 480 echo "$folder/$GIST_ID"
481 touch "$folder/$GIST_ID" 481 touch "$folder/$GIST_ID"
482 482
483 if [[ $@ =~ --no-action ]]; then 483 if [[ $* =~ --no-action ]]; then
484 return 0 484 return 0
485 elif [[ -z $action ]]; then 485 elif [[ -z $action ]]; then
486 action='echo Inside subshell, press \<CTRL-D\> to exit; ${SHELL:-bash}' 486 action='echo Inside subshell, press \<CTRL-D\> to exit; ${SHELL:-bash}'