Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Sep 17, 2023
1 parent b45f1dc commit ba656c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/functions/installs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,12 @@ install_tool_version() {
if [ $install_exit_code -eq 0 ] && [ $download_exit_code -eq 0 ]; then
# Remove download directory if --keep-download flag or always_keep_download config setting are not set
always_keep_download=$(get_asdf_config_value "always_keep_download")
if [ ! "$keep_download" = "true" ] && [ ! "$always_keep_download" = "yes" ] && [ -d "$download_path" ]; then
rm -r "$download_path"
if [ ! "$keep_download" = "true" ] && [ ! "$always_keep_download" = "yes" ]; then
if [ -d "$download_path" ]; then
rm -r "$download_path"
else
printf '%s\n' "You have set always_keep_download=yes or passed '--keep-download', but the current plugin does not support that."
fi
fi

reshim_command "$plugin_name" "$full_version"
Expand Down

0 comments on commit ba656c7

Please sign in to comment.