From 207389d91a0f3c1a9595d4eb98893db78a1f28f5 Mon Sep 17 00:00:00 2001 From: ajasibley <125228925+ajasibley@users.noreply.github.com> Date: Thu, 25 May 2023 03:15:36 -0700 Subject: [PATCH] Added support in update_source.sh for device with no zshrc made. --- scripts/update_source.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/update_source.sh b/scripts/update_source.sh index 5e4eab7e7..c4e0d131f 100644 --- a/scripts/update_source.sh +++ b/scripts/update_source.sh @@ -9,7 +9,12 @@ case $current_shell in source ~/.bashrc || source ~/.bash_profile ;; zsh) - source ~/.zshrc + if [ -f ~/.zshrc ]; then + source ~/.zshrc + else + touch ~/.zshrc + source ~/.zshrc + fi ;; *) exit 1