From: Arun Prakash Jana Date: Sun, 22 Nov 2020 15:24:49 +0000 (+0530) Subject: Remove trailing spaces X-Git-Tag: v3.6~54 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9e3bd377b0c721ec9abc2040f5396e39560aa8d1;p=nnn.git Remove trailing spaces --- diff --git a/plugins/fzcd b/plugins/fzcd index 8cc21ab3..b3f5efff 100755 --- a/plugins/fzcd +++ b/plugins/fzcd @@ -24,14 +24,14 @@ if [ -n "$sel" ]; then # by fzf command is absolute case $sel in /*) nnn_cd "$sel" ;; - *) + *) # Remove "./" prefix if it exists sel="${sel#./}" - + if [ "$PWD" = "/" ]; then nnn_cd "/$sel" else nnn_cd "$PWD/$sel" fi;; - esac + esac fi