From 4f8bf2ae78545959fa77950d81f1bca88cfda239 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 8 Mar 2019 12:38:36 +0900 Subject: [install] Avoid generating empty component in $PATH Fix #1517 --- install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'install') 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 -- cgit v1.2.3