Added support in update_source.sh for device with no zshrc made.

This commit is contained in:
ajasibley 2023-05-25 03:15:36 -07:00
parent d54795176c
commit 207389d91a

View file

@ -9,7 +9,12 @@ case $current_shell in
source ~/.bashrc || source ~/.bash_profile source ~/.bashrc || source ~/.bash_profile
;; ;;
zsh) zsh)
source ~/.zshrc if [ -f ~/.zshrc ]; then
source ~/.zshrc
else
touch ~/.zshrc
source ~/.zshrc
fi
;; ;;
*) *)
exit 1 exit 1