Skip to content

Commit

Permalink
fix: keep_download condition
Browse files Browse the repository at this point in the history
Fixes #1711
  • Loading branch information
Birdie0 committed Feb 19, 2024
1 parent ccdd47d commit 736f49d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/functions/installs.bash
Expand Up @@ -236,8 +236,8 @@ 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" ]; then
if [ -d "$download_path" ]; then
if [ -d "$download_path" ]; then
if [ ! "$keep_download" = "true" ] && [ ! "$always_keep_download" = "yes" ]; then
rm -r "$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
Expand Down

0 comments on commit 736f49d

Please sign in to comment.