diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-01-12 00:26:03 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-01-12 00:26:03 +0530 |
commit | 3c69e6ccac5fece5089d816de7a36fc1eb3f74e6 (patch) | |
tree | 91bf86af3e801b5b87f2ca6aa9797b2a282f6859 /misc/quitcd/quitcd.bash | |
parent | f1791af2ab07fbf2aac940d8ca71b2f0e78a0090 (diff) | |
download | nnn-3c69e6ccac5fece5089d816de7a36fc1eb3f74e6.tar.gz |
Guard against empty
Diffstat (limited to 'misc/quitcd/quitcd.bash')
-rw-r--r-- | misc/quitcd/quitcd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/quitcd/quitcd.bash b/misc/quitcd/quitcd.bash index 203e613..edeb2db 100644 --- a/misc/quitcd/quitcd.bash +++ b/misc/quitcd/quitcd.bash @@ -1,7 +1,7 @@ n () { # Block nesting of nnn in subshells - if [ "${NNNLVL:-0}" -ge 1 ]; then + if [ -n $NNNLVL ] && [ "${NNNLVL:-0}" -ge 1 ]; then echo "nnn is already running" return fi |