diff options
author | Mazen Harake <[email protected]> | 2016-07-19 12:07:34 +0200 |
---|---|---|
committer | Mazen Harake <[email protected]> | 2016-07-19 12:08:15 +0200 |
commit | c39a0a4a0fa836e748afc471d052b9736fcd6b99 (patch) | |
tree | 992e90efc82f9e00762598225b8390db1c90f8e1 /kerl | |
parent | f945409f2be7a13e714a6b99853f9f3e2f8fddad (diff) | |
download | kerl-c39a0a4a0fa836e748afc471d052b9736fcd6b99.tar.gz kerl-c39a0a4a0fa836e748afc471d052b9736fcd6b99.tar.bz2 kerl-c39a0a4a0fa836e748afc471d052b9736fcd6b99.zip |
Fix Issue #22
Exit script if $HOME variable is empty or not set.
Diffstat (limited to 'kerl')
-rwxr-xr-x | kerl | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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} |