From fa650ebf1f18e87864a7431c8f6ac3560b44c7c3 Mon Sep 17 00:00:00 2001 From: drKraken Date: Tue, 20 Jan 2015 21:24:58 +0200 Subject: [PATCH] Using double quotes to prevent word splitting --- tools/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index a53ac48ab..1db0c414b 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -10,7 +10,7 @@ if [ -d "$ZSH" ]; then fi echo "\033[0;34mCloning Oh My Zsh...\033[0m" -hash git >/dev/null 2>&1 && env git clone https://github.com/robbyrussell/oh-my-zsh.git $ZSH || { +hash git >/dev/null 2>&1 && env git clone https://github.com/robbyrussell/oh-my-zsh.git "$ZSH" || { echo "git not installed" exit } @@ -34,7 +34,7 @@ export PATH=\"$PATH\" if [ "$SHELL" != "$(which zsh)" ]; then echo "\033[0;34mTime to change your default shell to zsh!\033[0m" - chsh -s `which zsh` + chsh -s "$(which zsh)" fi echo "\033[0;32m"' __ __ '"\033[0m"