Exit if dir is unchanged

This commit is contained in:
Arun Prakash Jana 2019-12-09 23:27:10 +05:30
parent b14e1a4856
commit 877f7b4d62
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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