Remove trailing spaces

This commit is contained in:
Arun Prakash Jana 2020-11-22 20:54:49 +05:30
parent a7fd4957dd
commit 9e3bd377b0
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 3 additions and 3 deletions

View File

@ -24,14 +24,14 @@ if [ -n "$sel" ]; then
# by fzf command is absolute # by fzf command is absolute
case $sel in case $sel in
/*) nnn_cd "$sel" ;; /*) nnn_cd "$sel" ;;
*) *)
# Remove "./" prefix if it exists # Remove "./" prefix if it exists
sel="${sel#./}" sel="${sel#./}"
if [ "$PWD" = "/" ]; then if [ "$PWD" = "/" ]; then
nnn_cd "/$sel" nnn_cd "/$sel"
else else
nnn_cd "$PWD/$sel" nnn_cd "$PWD/$sel"
fi;; fi;;
esac esac
fi fi