Skip to content
Snippets Groups Projects
Unverified Commit 4f8bf2ae authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[install] Avoid generating empty component in $PATH

Fix #1517
parent 85c1f8a9
No related branches found
No related tags found
No related merge requests found
......@@ -272,7 +272,7 @@ for shell in $shells; do
# Setup fzf
# ---------
if [[ ! "\$PATH" == *$fzf_base_esc/bin* ]]; then
export PATH="\$PATH:$fzf_base/bin"
export PATH="\${PATH:+\${PATH}:}$fzf_base/bin"
fi
# Auto-completion
......@@ -282,7 +282,6 @@ $fzf_completion
# Key bindings
# ------------
$fzf_key_bindings
EOF
echo "OK"
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment