Fix #876: fzcd - go to dir and select file

This commit is contained in:
Arun Prakash Jana 2021-03-14 12:19:40 +05:30
parent 1571ea2b35
commit e8577baab2
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -14,9 +14,7 @@ else
fi fi
if [ -n "$sel" ]; then if [ -n "$sel" ]; then
if ! [ -d "$sel" ]; then if [ "$sel" = "." ] || (! [ -d "$sel" ] && ! [ -f "$sel" ]); then
sel=$(dirname "$sel")
elif [ "$sel" = "." ]; then
exit 0 exit 0
fi fi