From e9ad59e6e64921690c767b6d82c97d0b037b5f2b Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 3 Jul 2020 13:17:09 +0800 Subject: Fix configuation 'show_untagged' --- gist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gist b/gist index 74c6339..84332f2 100755 --- a/gist +++ b/gist @@ -320,7 +320,7 @@ _print_records() { | while read -r "${INDEX_FORMAT[@]}"; do local message="$(printf '%-56s' ${GIST_DOMAIN}/${gist_id})" if [[ $display == 'tag' ]]; then - [[ $show_untagged == 'false' && tags_string == ',' ]] && continue + [[ $show_untagged == 'false' && $tags_string == ',' ]] && continue message="$(printf '% 45s' "${tags_string//,/ }") " elif [[ $display == 'language' ]]; then message="$(tr ',' '\n' <<< $file_array | sed -Ee 's/.+=/#/' | uniq | xargs)" -- cgit v1.2.3-70-g09d2