Skip to content

Commit

Permalink
Env variable should be not set, not set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
KlzXS committed Nov 10, 2021
1 parent c9b9c14 commit a300e32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/.nmv
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a300e32

Please sign in to comment.