mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Exit if dir is unchanged
This commit is contained in:
parent
b14e1a4856
commit
877f7b4d62
|
@ -26,6 +26,8 @@ fi
|
||||||
if [ -n "$sel" ]; then
|
if [ -n "$sel" ]; then
|
||||||
if ! [ -d "$sel" ]; then
|
if ! [ -d "$sel" ]; then
|
||||||
sel=$(dirname "$sel")
|
sel=$(dirname "$sel")
|
||||||
|
elif [ "$sel" = "." ]; then
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove "./" prefix if it exists
|
# Remove "./" prefix if it exists
|
||||||
|
|
Loading…
Reference in a new issue