aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-05-16 12:03:32 +0800
committertypebrook <typebrook@gmail.com>2020-05-16 12:03:32 +0800
commit80e40c9583b4f20585eac90be9815a5303b1eacf (patch)
tree9088b55a56bff0523392f9153c644cb0cdd82283
parent30c961b00d876e10310d95b83f891b94193c5f9d (diff)
Avoid print duplicate details
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index 8dc703e..3a51ad7 100755
--- a/gist
+++ b/gist
@@ -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//,/ }