summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcolor-ls4
1 files changed, 3 insertions, 1 deletions
diff --git a/color-ls b/color-ls
index fe24deb..45cb0c2 100755
--- a/color-ls
+++ b/color-ls
@@ -121,7 +121,9 @@ function comma_output() {
}
END {
- if (output == "x") {
+ if (NR == 0) {
+ # do nothing
+ } else if (output == "x") {
row_output();
} else if (output == "C") {
columns_output();