Env variable should be not set, not set to 0

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

View File

@ -22,7 +22,6 @@ TMPDIR="${TMPDIR:-/tmp}"
INCLUDE_HIDDEN="${INCLUDE_HIDDEN:-0}"
VERBOSE="${VERBOSE:-0}"
RECURSIVE="${RECURSIVE:-0}"
NNN_LIST="${NNN_LIST:-0}"
selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
exit_status=0
@ -67,7 +66,7 @@ printf "%s" "$arr" | awk '{printf("%'"${width}"'d %s\n", NR, $0)}' > "$dst_file"
items=("~")
while IFS='' read -r line; do
if [ "$NNN_LIST" -eq 1 ]; then
if [ ! -z "$NNN_LIST" ]; then
line=$(readlink "$line" || printf "%s" "$line")
fi