summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-03-08 12:38:36 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-03-08 12:38:36 +0900
commit4f8bf2ae78545959fa77950d81f1bca88cfda239 (patch)
tree77956818b945cb4d35bb5eaeb2498cca36793934 /install
parent85c1f8a9e09348741b8a162882e5b94f7a3e830f (diff)
[install] Avoid generating empty component in $PATH
Fix #1517
Diffstat (limited to 'install')
-rwxr-xr-xinstall3
1 files changed, 1 insertions, 2 deletions
diff --git a/install b/install
index a80f8ac4..4cc0214b 100755
--- a/install
+++ b/install
@@ -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