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
1 changed files with 2 additions and 0 deletions

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