Escape spaces in folder name so script won't fail

If the current directory has spaces, the script fails to change paths and fails.
This commit is contained in:
Gaurav Misra 2013-04-09 11:45:16 -07:00
parent 0198a12953
commit 32a42f27b6

View File

@ -1,4 +1,5 @@
current_path=`pwd` current_path=`pwd`
current_path=${current_path/ /\\ }
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