diff options
| author | typebrook <typebrook@gmail.com> | 2020-01-31 12:30:17 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-01-31 12:30:17 +0800 |
| commit | de1a89440b2d583435a212d98cb301f0b24efe9b (patch) | |
| tree | cac3214e0fe18bf4897db6e07b6bb31ff9685e9f /scripts/gist | |
| parent | 8d49839ad98286d78e87a9fe0bafee07d87c2913 (diff) | |
update
Diffstat (limited to 'scripts/gist')
| -rwxr-xr-x | scripts/gist | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gist b/scripts/gist index d0198a3..8e5e36c 100755 --- a/scripts/gist +++ b/scripts/gist | |||
| @@ -403,7 +403,7 @@ _edit_gist() { | |||
| 403 | && _update | 403 | && _update |
| 404 | } | 404 | } |
| 405 | 405 | ||
| 406 | _help_message() { | 406 | usage() { |
| 407 | sed -E -n ' /^$/ q; 8,$ s/^#//p' $0 | 407 | sed -E -n ' /^$/ q; 8,$ s/^#//p' $0 |
| 408 | } | 408 | } |
| 409 | 409 | ||
| @@ -434,7 +434,7 @@ case "$1" in | |||
| 434 | shift | 434 | shift |
| 435 | _configure "$@" ;; | 435 | _configure "$@" ;; |
| 436 | help | h) | 436 | help | h) |
| 437 | _help_message ;; | 437 | usage ;; |
| 438 | *) | 438 | *) |
| 439 | _goto_gist "$1" ;; | 439 | _goto_gist "$1" ;; |
| 440 | esac | 440 | esac |