aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Allen <[email protected]>2016-07-19 14:31:08 -0500
committerGitHub <[email protected]>2016-07-19 14:31:08 -0500
commitee534691524ae2bb8521b40963da6b0dd75bf5b5 (patch)
tree992e90efc82f9e00762598225b8390db1c90f8e1
parentf945409f2be7a13e714a6b99853f9f3e2f8fddad (diff)
parentc39a0a4a0fa836e748afc471d052b9736fcd6b99 (diff)
downloadkerl-ee534691524ae2bb8521b40963da6b0dd75bf5b5.tar.gz
kerl-ee534691524ae2bb8521b40963da6b0dd75bf5b5.tar.bz2
kerl-ee534691524ae2bb8521b40963da6b0dd75bf5b5.zip
Merge pull request #151 from mazenharake/fix22
Fix Issue #22
-rwxr-xr-xkerl5
1 files changed, 5 insertions, 0 deletions
diff --git a/kerl b/kerl
index e5f6c76..70b5d7b 100755
--- a/kerl
+++ b/kerl
@@ -29,6 +29,11 @@ GREP_OPTIONS=''
ERLANG_DOWNLOAD_URL="http://www.erlang.org/download"
+if [ -z "$HOME" ]; then
+ echo "Error: \$HOME is empty or not set." 1>&2
+ exit 1
+fi
+
# Default values
: ${OTP_GITHUB_URL:="https://github.com/erlang/otp"}
: ${KERL_BASE_DIR:="$HOME"/.kerl}