]> Sergey Matveev's repositories - nnn.git/commitdiff
Exit if dir is unchanged
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 9 Dec 2019 17:57:10 +0000 (23:27 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 9 Dec 2019 17:57:10 +0000 (23:27 +0530)
plugins/fzcd

index 88f5397691c0b36878522a574585ec2b73430cb5..9e93969c00b198475c09af2badcbf92bfe0a2e29 100755 (executable)
@@ -26,6 +26,8 @@ fi
 if [ -n "$sel" ]; then
        if ! [ -d "$sel" ]; then
                sel=$(dirname "$sel")
+    elif [ "$sel" = "." ]; then
+        exit 0
        fi
 
     # Remove "./" prefix if it exists