]> Sergey Matveev's repositories - nnn.git/commitdiff
-n exists for a reason
authorKlzXS <klzx+github@klzx.cf>
Wed, 10 Nov 2021 20:56:51 +0000 (21:56 +0100)
committerKlzXS <klzx+github@klzx.cf>
Wed, 10 Nov 2021 20:56:51 +0000 (21:56 +0100)
plugins/.nmv

index 4146cde20b7f0ce720720feed2d6ed37b1c785cf..bf07b10f28b85ee22c70e6013fcadc4544e2f70a 100755 (executable)
@@ -66,7 +66,7 @@ printf "%s" "$arr" | awk '{printf("%'"${width}"'d %s\n", NR, $0)}' > "$dst_file"
 
 items=("~")
 while IFS='' read -r line; do
-       if [ ! -z "$NNN_LIST" ]; then
+       if [ -n "$NNN_LIST" ]; then
                line=$(readlink "$line" || printf "%s" "$line")
        fi