Skip to content

Commit

Permalink
Be more consistent with existing elements
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Apr 11, 2022
1 parent 34d049b commit b857ffa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions kerl
Original file line number Diff line number Diff line change
Expand Up @@ -2238,9 +2238,13 @@ case "$1" in
current_kerl_path="$(which kerl)"
which_status=$?
if [ $which_status != 0 ]; then
install_folder="/usr/local/bin"
if [ -z ${KERL_DEFAULT_INSTALL_DIR+x} ]; then
install_folder="$PWD"
else
install_folder="$KERL_DEFAULT_INSTALL_DIR"
fi
echo "kerl not installed. Dropping it into $install_folder/kerl..."
upgrade_kerl $install_folder
upgrade_kerl "$install_folder"
else
version=$(kerl version)
echo "local kerl found ($current_kerl_path) at version $version."
Expand Down

0 comments on commit b857ffa

Please sign in to comment.