From d78a4462cb3cab02dfb6adc4ebc1213c5ab0aae7 Mon Sep 17 00:00:00 2001 From: Oboo Cheng Date: Thu, 19 Nov 2020 15:57:13 +0800 Subject: [PATCH] fix(install): install script export path (#918) --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 6165a8e84f..dc4fba837e 100755 --- a/install.sh +++ b/install.sh @@ -68,8 +68,8 @@ echo "Shell profile: ${bold}$PROFILE${sgr0}" case :$PATH: in *:$bin_dir:*) : "PATH already contains $bin_dir" ;; - *) printf 'export PATH=%s:$PATH\n' "$bin_dir" >> "$PROFILE" - echo "$PROFILE has been modified to to add tiup to PATH" + *) printf '\nexport PATH=%s:$PATH\n' "$bin_dir" >> "$PROFILE" + echo "$PROFILE has been modified to add tiup to PATH" echo "open a new terminal or ${bold}source ${PROFILE}${sgr0} to use it" ;; esac