Skip to content

Commit

Permalink
fix: when download path got removed, it should use -f to force delete…
Browse files Browse the repository at this point in the history
… the download files
  • Loading branch information
kamontat committed Apr 23, 2024
1 parent ccdd47d commit 2bdd676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/installs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ install_tool_version() {
always_keep_download=$(get_asdf_config_value "always_keep_download")
if [ ! "$keep_download" = "true" ] && [ ! "$always_keep_download" = "yes" ]; then
if [ -d "$download_path" ]; then
rm -r "$download_path"
rm -rf "$download_path"
else
printf '%s\n' "asdf: Warn: You have configured asdf to preserve downloaded files (with always_keep_download=yes or --keep-download). But" >&2
printf '%s\n' "asdf: Warn: the current plugin ($plugin_name) does not support that. Downloaded files will not be preserved." >&2
Expand Down

0 comments on commit 2bdd676

Please sign in to comment.