summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2018-10-07 23:15:36 -0400
committerJakob Kaivo <jkk@ung.org>2018-10-07 23:15:36 -0400
commit352ab468b8c251e7b4d69af61485107de7c60b04 (patch)
tree71ee5c9769c653a23754af2a8eaea2c4dec53dff
parent368d444b1bb2678ea086dfd88e112ae19d9a8a70 (diff)
unbreak non-long output
-rwxr-xr-xcolor-ls2
1 files changed, 1 insertions, 1 deletions
diff --git a/color-ls b/color-ls
index ff7e7a7..911b73a 100755
--- a/color-ls
+++ b/color-ls
@@ -128,7 +128,7 @@ _colorize () {
/\*$/ || (long && /^-/ && $1 ~ /x/){ color=32; }
/\|$/ || (long && /^p/) { color=33; }
/@$/ || (long && /^l/) { color=35; }
- long { printf("\033\[%sm%s\033\[0m\n", color, $0); }'
+ { printf("\033\[%sm%s\033\[0m\n", color, $0); }'
}
_remove_symbols () {