diff options
author | Salvador Fuentes Jr <[email protected]> | 2011-08-30 02:26:17 -0700 |
---|---|---|
committer | Salvador Fuentes Jr <[email protected]> | 2011-08-30 02:26:17 -0700 |
commit | 2f07012fa36580ec8b1b4bafcbfce4056c20e47d (patch) | |
tree | 8089ffe7317a42cac470a0107907dc1452a27e22 | |
parent | 780e84404b0478495cba6912a2b2434e11d95f58 (diff) | |
download | kerl-2f07012fa36580ec8b1b4bafcbfce4056c20e47d.tar.gz kerl-2f07012fa36580ec8b1b4bafcbfce4056c20e47d.tar.bz2 kerl-2f07012fa36580ec8b1b4bafcbfce4056c20e47d.zip |
use KERL_DEFAULT_INSTALL_DIR/<build-name> if defined in dotkerlrc
-rwxr-xr-x | kerl | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |