mirror of https://github.com/jarun/nnn.git
parent
c09ac1c174
commit
3f4efbefe4
|
@ -1,7 +1,7 @@
|
|||
n ()
|
||||
{
|
||||
# Block nesting of nnn in subshells
|
||||
if [ -n $NNNLVL ] && [ "${NNNLVL:-0}" -ge 1 ]; then
|
||||
if [[ "${NNNLVL:-0}" -ge 1 ]]; then
|
||||
echo "nnn is already running"
|
||||
return
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue