mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
fix: Avoid false warning on clean up.
This commit is contained in:
parent
ccdd47df9b
commit
e34de79320
@ -237,12 +237,10 @@ install_tool_version() {
|
|||||||
# Remove download directory if --keep-download flag or always_keep_download config setting are not set
|
# 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")
|
always_keep_download=$(get_asdf_config_value "always_keep_download")
|
||||||
if [ ! "$keep_download" = "true" ] && [ ! "$always_keep_download" = "yes" ]; then
|
if [ ! "$keep_download" = "true" ] && [ ! "$always_keep_download" = "yes" ]; then
|
||||||
if [ -d "$download_path" ]; then
|
rm -rf "$download_path"
|
||||||
rm -r "$download_path"
|
elif [ ! -d "$download_path" ]; then
|
||||||
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: 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
|
||||||
printf '%s\n' "asdf: Warn: the current plugin ($plugin_name) does not support that. Downloaded files will not be preserved." >&2
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
reshim_command "$plugin_name" "$full_version"
|
reshim_command "$plugin_name" "$full_version"
|
||||||
|
Loading…
Reference in New Issue
Block a user