Don't update oh my zsh if it doesnt exist

This commit is contained in:
Thomas Forgione 2019-05-03 10:22:50 +02:00
parent 109cd43bed
commit 8148b39bf4
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 5 additions and 3 deletions

View File

@ -209,12 +209,14 @@ update-dotfiles() {
current_dir=$PWD 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" echo -e "\033[32;1m=== Updating dotfiles ===\033[0m"
cd ~/.config/dotfiles && git pull 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 if [ -d ~/.config/awesome/.git ]; then
echo -e "\033[32;1m=== Updating awesome config ===\033[0m" echo -e "\033[32;1m=== Updating awesome config ===\033[0m"
cd ~/.config/awesome/ && git pull cd ~/.config/awesome/ && git pull