Commit 32a42f27 authored by Gaurav Misra's avatar Gaurav Misra
Browse files

Escape spaces in folder name so script won't fail

If the current directory has spaces, the script fails to change paths and fails.
parent 0198a129
current_path=`pwd`
current_path=${current_path/ /\\ }
printf '\033[0;34m%s\033[0m\n' "Upgrading Oh My Zsh"
cd $ZSH
......@@ -16,4 +17,4 @@ else
printf '\033[0;31m%s\033[0m\n' 'There was an error updating. Try again later?'
fi
cd "$current_path"
\ No newline at end of file
cd "$current_path"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment