diff --git a/tools/renovate-post-upgrade.sh b/tools/renovate-post-upgrade.sh index 2699f9f6a0..4a9e3aa2f2 100755 --- a/tools/renovate-post-upgrade.sh +++ b/tools/renovate-post-upgrade.sh @@ -35,8 +35,10 @@ if ! command -v cargo-hakari &> /dev/null; then if ! command -v cargo-binstall &> /dev/null; then # Fetch cargo binstall. echo "Installing cargo-binstall..." - curl --retry 3 -L --proto '=https' --tlsv1.2 -sSfO https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh - retry_command bash install-from-binstall-release.sh + tempdir=$(mktemp -d) + curl --retry 3 -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh -o "$tempdir"/install-from-binstall-release.sh + retry_command bash "$tempdir"/install-from-binstall-release.sh + rm -rf "$tempdir" fi # Install cargo-hakari.