From 8148b39bf4866956523a2bff3e28aeff24ba26ba Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 3 May 2019 10:22:50 +0200 Subject: [PATCH] Don't update oh my zsh if it doesnt exist --- bin/update | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/update b/bin/update index 69cbd1f..9139c1b 100755 --- a/bin/update +++ b/bin/update @@ -209,12 +209,14 @@ update-dotfiles() { current_dir=$PWD - echo -e "\033[32;1m=== Updating oh-my-zsh ===\033[0m" - cd ~/.config/oh-my-zsh && git pull - echo -e "\033[32;1m=== Updating dotfiles ===\033[0m" cd ~/.config/dotfiles && git pull + if [ -d ~/.config/oh-my-zsh ]; then + echo -e "\033[32;1m=== Updating oh-my-zsh ===\033[0m" + cd ~/.config/oh-my-zsh && git pull + fi + if [ -d ~/.config/awesome/.git ]; then echo -e "\033[32;1m=== Updating awesome config ===\033[0m" cd ~/.config/awesome/ && git pull