mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 03:41:27 +00:00
Fix: BSD expr syntax error on empty $NNNLVL (#546)
This commit is contained in:
parent
cb202e128b
commit
45a69f1cbf
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue