-n exists for a reason

This commit is contained in:
KlzXS 2021-11-10 21:56:51 +01:00
parent a300e3267f
commit 875a4d8c23
No known key found for this signature in database
GPG Key ID: 6F2A29F874A14243
1 changed files with 1 additions and 1 deletions

View File

@ -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