aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkerl7
1 files 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)