mirror of
https://github.com/jarun/nnn.git
synced 2024-11-27 21:31:30 +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'
|
function n --description 'support nnn quit and change directory'
|
||||||
# Block nesting of nnn in subshells
|
# Block nesting of nnn in subshells
|
||||||
if test -n NNNLVL
|
if test -n "$NNNLVL"
|
||||||
if [ (expr $NNNLVL + 0) -ge 1 ]
|
if [ (expr $NNNLVL + 0) -ge 1 ]
|
||||||
echo "nnn is already running"
|
echo "nnn is already running"
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue