aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2020-07-03 13:17:09 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2020-07-03 13:17:30 +0800
commite9ad59e6e64921690c767b6d82c97d0b037b5f2b (patch)
treeb7b7e30b7e9090abc09f98d2f59a0cde04adb428
parentbe46fcdede28283ee33dbfe1d817c9f592a596a2 (diff)
Fix configuation 'show_untagged'
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index 74c6339..84332f2 100755
--- a/gist
+++ b/gist
@@ -320,7 +320,7 @@ _print_records() {
320 | while read -r "${INDEX_FORMAT[@]}"; do 320 | while read -r "${INDEX_FORMAT[@]}"; do
321 local message="$(printf '%-56s' ${GIST_DOMAIN}/${gist_id})" 321 local message="$(printf '%-56s' ${GIST_DOMAIN}/${gist_id})"
322 if [[ $display == 'tag' ]]; then 322 if [[ $display == 'tag' ]]; then
323 [[ $show_untagged == 'false' && tags_string == ',' ]] && continue 323 [[ $show_untagged == 'false' && $tags_string == ',' ]] && continue
324 message="$(printf '% 45s' "${tags_string//,/ }") " 324 message="$(printf '% 45s' "${tags_string//,/ }") "
325 elif [[ $display == 'language' ]]; then 325 elif [[ $display == 'language' ]]; then
326 message="$(tr ',' '\n' <<< $file_array | sed -Ee 's/.+=/#/' | uniq | xargs)" 326 message="$(tr ',' '\n' <<< $file_array | sed -Ee 's/.+=/#/' | uniq | xargs)"