diff options
author | typebrook <typebrook@gmail.com> | 2020-04-01 09:32:35 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-04-01 09:32:35 +0800 |
commit | 1c7b1a1b47dd04d97dc4fad87c4866a0ba2e99aa (patch) | |
tree | 4df8131569aaddd52c936482a58fb8450c59ab24 | |
parent | 239f6431f32dcf9f1368283daf0d65da49ef8e20 (diff) |
Refactor code
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}' |