diff options
author | typebrook <typebrook@gmail.com> | 2020-04-10 10:33:01 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-04-10 10:33:01 +0800 |
commit | d0e23060bfb53987387c88cc89b7ec18a570a801 (patch) | |
tree | f0bfafc22362f445bc6b0f5d235c13896ccaca38 | |
parent | 07b1734ffe64b565a89722d7e562ab3f27ad37f8 (diff) |
Improve 'gist help' with proper pattern
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -698,7 +698,7 @@ _edit_gist() { | |||
698 | 698 | ||
699 | # Print helper message | 699 | # Print helper message |
700 | usage() { | 700 | usage() { |
701 | sed -E -n -e ' /^$/ q; 1,/^# --/ d; s/^# //p' "$0" | 701 | sed -E -n -e '/^#/ !q; 1,/^# --/ d; s/^# //p' "$0" |
702 | } | 702 | } |
703 | 703 | ||
704 | # Check remote urls of all repos match current protocol in configuration file | 704 | # Check remote urls of all repos match current protocol in configuration file |