From bdf3f3e0c113806a153dac4ba336bc1ca4f4e2e1 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 1b440d277..124a51696 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"