fix(installer): fix POSIX shell syntax of previous commit

parent ba069e77
...@@ -250,9 +250,9 @@ setup_zshrc() { ...@@ -250,9 +250,9 @@ setup_zshrc() {
echo "${GREEN}Using the Oh My Zsh template file and adding it to ~/.zshrc.${RESET}" echo "${GREEN}Using the Oh My Zsh template file and adding it to ~/.zshrc.${RESET}"
sed "/^export ZSH=/ c\\ # Replace $HOME path with '$HOME' in $ZSH variable in .zshrc file
export ZSH=\"${ZSH/$HOME\//\$HOME\/}\" omz=$(echo "$ZSH" | sed "s|^$HOME/|\$HOME/|")
" "$ZSH/templates/zshrc.zsh-template" > ~/.zshrc-omztemp sed "s|^export ZSH=.*$|export ZSH=\"${omz}\"|" "$ZSH/templates/zshrc.zsh-template" > ~/.zshrc-omztemp
mv -f ~/.zshrc-omztemp ~/.zshrc mv -f ~/.zshrc-omztemp ~/.zshrc
echo echo
......
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