Skip to content

Commit

Permalink
use KERL_DEFAULT_INSTALL_DIR/<build-name> if defined in dotkerlrc
Browse files Browse the repository at this point in the history
  • Loading branch information
scalone-cw committed May 9, 2024
1 parent bdf0f64 commit a49a9b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kerl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a49a9b6

Please sign in to comment.