From 858c515df2d8ce1f75ac3d505f77a71984653929 Mon Sep 17 00:00:00 2001 From: Patrick Stadler Date: Tue, 3 Dec 2013 09:52:51 +0100 Subject: [PATCH] source ~/.profile only if it exists --- tools/check_for_upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index 14d29432..0f8c9c39 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -20,7 +20,7 @@ if [[ -z "$epoch_target" ]]; then epoch_target=13 fi -[ ~/.profile ] && source ~/.profile +[ -f ~/.profile ] && source ~/.profile if [ -f ~/.zsh-update ] then