summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPatrick Stadler <patrick.stadler@gmail.com>2013-12-03 09:52:51 +0100
committerPatrick Stadler <patrick.stadler@gmail.com>2013-12-03 09:52:51 +0100
commit858c515df2d8ce1f75ac3d505f77a71984653929 (patch)
tree5da546fe47279c16dfab8d5865a71132879cfdb6 /tools
parent4e34588a5b2e48c4ce901f47ed4c1a6b753c6926 (diff)
downloadzsh-858c515df2d8ce1f75ac3d505f77a71984653929.tar.gz
zsh-858c515df2d8ce1f75ac3d505f77a71984653929.tar.bz2
zsh-858c515df2d8ce1f75ac3d505f77a71984653929.zip
source ~/.profile only if it exists
Diffstat (limited to 'tools')
-rw-r--r--tools/check_for_upgrade.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index 14d294328..0f8c9c391 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