858c515df2d8ce1f75ac3d505f77a71984653929
- Author
- Patrick Stadler <patrick.stadler@gmail.com>
- Committer
- Patrick Stadler <patrick.stadler@gmail.com>
- Date
Message
source ~/.profile only if it exists
Diff
1diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
2index 14d294328bd59961657cc9f023711f8f976e7931..0f8c9c391413e460fd99d80a50c5fb6b1e5c0984 100644
3--- a/tools/check_for_upgrade.sh
4+++ b/tools/check_for_upgrade.sh
5@@ -20,7 +20,7 @@ if [[ -z "$epoch_target" ]]; then
6 epoch_target=13
7 fi
8
9-[ ~/.profile ] && source ~/.profile
10+[ -f ~/.profile ] && source ~/.profile
11
12 if [ -f ~/.zsh-update ]
13 then