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