diff options
Diffstat (limited to 'kerl')
-rwxr-xr-x | kerl | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -26,11 +26,13 @@ GREP_OPTIONS='' ERLANG_DOWNLOAD_URL=http://www.erlang.org/download -KERL_BASE_DIR="$HOME"/.kerl -KERL_CONFIG="$HOME"/.kerlrc -KERL_DOWNLOAD_DIR="${KERL_BASE_DIR:?}"/archives -KERL_BUILD_DIR="${KERL_BASE_DIR:?}"/builds -KERL_GIT_DIR="${KERL_BASE_DIR:?}"/gits +# Default values +: ${KERL_BASE_DIR:="$HOME"/.kerl} +: ${KERL_CONFIG:="$HOME"/.kerlrc} +: ${KERL_DOWNLOAD_DIR:="${KERL_BASE_DIR:?}"/archives} +: ${KERL_BUILD_DIR:="${KERL_BASE_DIR:?}"/builds} +: ${KERL_GIT_DIR:="${KERL_BASE_DIR:?}"/gits} + if [ -n "$KERL_CONFIGURE_OPTIONS" ]; then _KCO="$KERL_CONFIGURE_OPTIONS" fi |