From: Patrick <patrickf3139@gmail.com>
Date: Fri, 16 Sep 2022 01:24:04 +0000 (-0700)
Subject: make one single invocation to test
X-Git-Tag: v4.7~14^2~1
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c9c74dd753d6f833fc77831dd0b1310ff81a389c;p=nnn.git

make one single invocation to test
---

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