diff options
| author | typebrook <typebrook@gmail.com> | 2020-05-16 12:03:32 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-05-16 12:03:32 +0800 |
| commit | 80e40c9583b4f20585eac90be9815a5303b1eacf (patch) | |
| tree | 9088b55a56bff0523392f9153c644cb0cdd82283 | |
| parent | 30c961b00d876e10310d95b83f891b94193c5f9d (diff) | |
Avoid print duplicate details
| -rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -569,7 +569,7 @@ for comment in raw: | |||
| 569 | _show_detail() { | 569 | _show_detail() { |
| 570 | _set_gist_id $1 || return 1 | 570 | _set_gist_id $1 || return 1 |
| 571 | 571 | ||
| 572 | sed -En -e "/[^ ]+ [^ ]+$GIST_ID / p" $INDEX \ | 572 | sed -En -e "/[^ ]+ [^ ]+$GIST_ID / {p; q}" $INDEX \ |
| 573 | | while read -r "${INDEX_FORMAT[@]}"; do | 573 | | while read -r "${INDEX_FORMAT[@]}"; do |
| 574 | echo -e desc: $(_color_description_title "$description") | 574 | echo -e desc: $(_color_description_title "$description") |
| 575 | echo -e tags: ${tags_string//,/ } | 575 | echo -e tags: ${tags_string//,/ } |