Don't update oh my zsh if it doesnt exist
This commit is contained in:
parent
109cd43bed
commit
8148b39bf4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue