From 1c7b1a1b47dd04d97dc4fad87c4866a0ba2e99aa Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 1 Apr 2020 09:32:35 +0800 Subject: Refactor code --- gist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gist b/gist index 0c7a5af..d4071da 100755 --- a/gist +++ b/gist @@ -480,7 +480,7 @@ _goto_gist() { echo "$folder/$GIST_ID" touch "$folder/$GIST_ID" - if [[ $@ =~ --no-action ]]; then + if [[ $* =~ --no-action ]]; then return 0 elif [[ -z $action ]]; then action='echo Inside subshell, press \ to exit; ${SHELL:-bash}' -- cgit v1.2.3-70-g09d2