From a49a9b69bc59ffe5014bc1a416ffaa893e5cb6cb Mon Sep 17 00:00:00 2001 From: Thiago Scalone <155578946+scalone-cw@users.noreply.github.com> Date: Tue, 30 Aug 2011 02:26:17 -0700 Subject: [PATCH] use KERL_DEFAULT_INSTALL_DIR/ if defined in dotkerlrc --- kerl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kerl b/kerl index c2599f4..9e33e89 100755 --- a/kerl +++ b/kerl @@ -27,7 +27,6 @@ KERL_BASE_DIR="$HOME/.kerl" KERL_CONFIG="$HOME/.kerlrc" KERL_DOWNLOAD_DIR="$KERL_BASE_DIR/archives" KERL_BUILD_DIR="$KERL_BASE_DIR/builds" -KERL_DEFAULT_INSTALL_DIR="$KERL_BASE_DIR/installs" if [ -n "$KERL_CONFIGURE_OPTIONS" ]; then _KCO="$KERL_CONFIGURE_OPTIONS" fi @@ -530,7 +529,11 @@ case "$1" in if [ $# -eq 3 ]; then do_install $2 "$3" else - do_install $2 "$KERL_DEFAULT_INSTALL_DIR/$2" + if [ -z "$KERL_DEFAULT_INSTALL_DIR" ]; then + do_install $2 . + else + do_install $2 "$KERL_DEFAULT_INSTALL_DIR/$2" + fi fi ;; update)