Support force (re)installing

This commit is contained in:
Ash McKenzie 2023-04-18 14:19:00 +10:00
parent f273612155
commit 9d804e8186
No known key found for this signature in database
GPG Key ID: A1253B4953E8D3E6

View File

@ -179,7 +179,7 @@ install_tool_version() {
concurrency=$(get_concurrency)
trap 'handle_cancel $install_path' INT
if [ -d "$install_path" ]; then
if [ -d "$install_path" ] && [ "${ASDF_FORCE_INSTALL}" != "true" ]; then
printf "%s %s is already installed\n" "$plugin_name" "$full_version"
else