diff options
author | Rami3L <rami3l@outlook.com> | 2020-05-02 12:14:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-02 09:44:19 +0530 |
commit | 45a69f1cbf99deb614e21ff3b0a1b48169e1bffc (patch) | |
tree | 7c4c55b4777dfba436586ed82e8d903a79af44c7 /misc | |
parent | cb202e128b77eb7a72fd064eb23a3b943b63c8d2 (diff) | |
download | nnn-45a69f1cbf99deb614e21ff3b0a1b48169e1bffc.tar.gz |
Fix: BSD expr syntax error on empty $NNNLVL (#546)
Diffstat (limited to 'misc')
-rw-r--r-- | misc/quitcd/quitcd.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/quitcd/quitcd.fish b/misc/quitcd/quitcd.fish index 9b3061c..5048853 100644 --- a/misc/quitcd/quitcd.fish +++ b/misc/quitcd/quitcd.fish @@ -4,7 +4,7 @@ function n --description 'support nnn quit and change directory' # Block nesting of nnn in subshells - if test -n NNNLVL + if test -n "$NNNLVL" if [ (expr $NNNLVL + 0) -ge 1 ] echo "nnn is already running" return |