fec0089cddf4eb6677d90561079f7a6cb0971197
- Author
- Dan Wallis <mrdanwallis@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Quote $ZSH where necessary in install script (#6587)
Quote $ZSH where necessary in install script
Diff
1diff --git a/tools/install.sh b/tools/install.sh
2index ad47df7858b2574e07137f4db5375e876a60dc02..b815a9c81cd911f46632800d5db29bc59fd0b2e5 100755
3--- a/tools/install.sh
4+++ b/tools/install.sh
5@@ -59,7 +59,7 @@ main() {
6 exit 1
7 fi
8 fi
9- env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
10+ env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git "$ZSH" || {
11 printf "Error: git clone of oh-my-zsh repo failed\n"
12 exit 1
13 }
14@@ -72,9 +72,9 @@ main() {
15 fi
16
17 printf "${BLUE}Using the Oh My Zsh template file and adding it to ~/.zshrc${NORMAL}\n"
18- cp $ZSH/templates/zshrc.zsh-template ~/.zshrc
19+ cp "$ZSH"/templates/zshrc.zsh-template ~/.zshrc
20 sed "/^export ZSH=/ c\\
21- export ZSH=$ZSH
22+ export ZSH=\"$ZSH\"
23 " ~/.zshrc > ~/.zshrc-omztemp
24 mv -f ~/.zshrc-omztemp ~/.zshrc
25