From c9c74dd753d6f833fc77831dd0b1310ff81a389c Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 15 Sep 2022 18:24:04 -0700 Subject: [PATCH] make one single invocation to test --- misc/quitcd/quitcd.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/quitcd/quitcd.fish b/misc/quitcd/quitcd.fish index 12d3b6d2..952ae169 100644 --- a/misc/quitcd/quitcd.fish +++ b/misc/quitcd/quitcd.fish @@ -4,7 +4,7 @@ function n --wraps nnn --description 'support nnn quit and change directory' # Block nesting of nnn in subshells - if test -n "$NNNLVL" && test $NNNLVL -ge 1 + if test -n "$NNNLVL" -a $NNNLVL -ge 1 echo "nnn is already running" return end