Added double quotes around /Users/Johnathan Barrett/.oh-my-zsh to stop it breaking when there's spaces in the directory

This commit is contained in:
Johnathan Barrett 2012-03-21 17:02:44 +00:00
commit d7214f3310

View file

@ -1,6 +1,6 @@
current_path=`pwd` current_path=`pwd`
printf '\033[0;34m%s\033[0m\n' "Upgrading Oh My Zsh" printf '\033[0;34m%s\033[0m\n' "Upgrading Oh My Zsh"
cd $ZSH cd "$ZSH"
if git pull origin master if git pull origin master
then then
@ -16,4 +16,4 @@ else
printf '\033[0;31m%s\033[0m\n' 'There was an error updating. Try again later?' printf '\033[0;31m%s\033[0m\n' 'There was an error updating. Try again later?'
fi fi
cd "$current_path" cd "$current_path"