From 52b4bcec1e63f8df5820506d6e8d32ba7374113b Mon Sep 17 00:00:00 2001 From: Philip Henning Date: Wed, 26 Feb 2020 22:05:45 +0100 Subject: [PATCH] Make installation more robust and working for unattended installations --- config.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/config.yaml b/config.yaml index fd1b858..d369d34 100644 --- a/config.yaml +++ b/config.yaml @@ -1,10 +1,8 @@ actions: - oh-my-zsh: if [ ! -d ~/.oh-my-zsh ]; then sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - && if [ -f ~/.zshrc.pre-oh-my-zsh ]; then rm ~/.zshrc && mv ~/.zshrc.pre-oh-my-zsh - ~/.zshrc; fi; fi + oh-my-zsh: if [ ! -d ~/.oh-my-zsh ]; then sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" "" --unattended; + if [ -f ~/.zshrc.pre-oh-my-zsh ]; then rm ~/.zshrc && mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc; fi; fi powerlevel9k-theme: if [ ! -d ~/.oh-my-zsh/custom/themes ]; then mkdir -p ~/.oh-my-zsh/custom/themes; - fi && if [ ! -d ~/.oh-my-zsh/custom/themes/powerlevel9k ];then git clone https://github.com/bhilburn/powerlevel9k.git - ~/.oh-my-zsh/custom/themes/powerlevel9k; fi + fi; if [ ! -d ~/.oh-my-zsh/custom/themes/powerlevel9k ];then git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k; fi config: backup: true create: true