From 86d7dbd55368a0eb520285f4da7a6f5652530034 Mon Sep 17 00:00:00 2001 From: TitanSnow Date: Fri, 26 May 2017 07:28:13 +0800 Subject: fix shellcheck --- scripts/get.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/get.sh b/scripts/get.sh index cf07e291d..167d07beb 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -131,10 +131,10 @@ shell_profile(){ elif [[ "$SHELL" = */ksh ]]; then echo ~/.kshrc else echo ~/.bash_profile; fi } -xmake --version >/dev/null 2>&1 && xmake --version || { - echo "export PATH=$prefix/bin:\$PATH" >> $(shell_profile) +if xmake --version >/dev/null 2>&1; then xmake --version; else + echo "export PATH=$prefix/bin:\$PATH" >> "$(shell_profile)" export PATH=$prefix/bin:$PATH xmake --version echo "Reload shell profile by running the following command now!" echo -e "\x1b[1msource '$(shell_profile)'\x1b[0m" -} +fi -- cgit v1.3.1