From 221507f1c0288f0df13315a7f0f2c0a7bc39e7c2 Mon Sep 17 00:00:00 2001 From: Kamontat Chantrachirathumrong <14089557+kamontat@users.noreply.github.com> Date: Wed, 18 Dec 2024 02:53:15 +0700 Subject: [PATCH] fix: when download path got removed, it should use -f to force delete the download files (#1746) Co-authored-by: Trevor Brown --- lib/functions/installs.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/installs.bash b/lib/functions/installs.bash index 1b440d27..124a5169 100644 --- a/lib/functions/installs.bash +++ b/lib/functions/installs.bash @@ -243,7 +243,7 @@ install_tool_version() { fi # Otherwise, remove the download directory if it exists elif [ -d "$download_path" ]; then - rm -r "$download_path" + rm -rf "$download_path" fi reshim_command "$plugin_name" "$full_version"