aboutsummaryrefslogtreecommitdiffstats
path: root/kerl
diff options
context:
space:
mode:
Diffstat (limited to 'kerl')
-rwxr-xr-xkerl5
1 files changed, 5 insertions, 0 deletions
diff --git a/kerl b/kerl
index 72077a0..242829d 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}