mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 12:46:13 +08:00
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:
parent
0198a12953
commit
32a42f27b6
|
@ -1,4 +1,5 @@
|
|||
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"
|
||||
cd "$current_path"
|
||||
|
|
Loading…
Reference in New Issue
Block a user