]> Sergey Matveev's repositories - nnn.git/commitdiff
wrap in quotes just in case
authorPatrick <patrickf3139@gmail.com>
Fri, 16 Sep 2022 02:57:25 +0000 (19:57 -0700)
committerGitHub <noreply@github.com>
Fri, 16 Sep 2022 02:57:25 +0000 (19:57 -0700)
misc/quitcd/quitcd.fish

index 952ae16927a75948cffcc17ab3821aa21b7dc992..a8c3dc43a2df64e340efc8c4ea6fe1559179644e 100644 (file)
@@ -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" -a $NNNLVL -ge 1
+    if test -n "$NNNLVL" -a "$NNNLVL" -ge 1
         echo "nnn is already running"
         return
     end