Skip to content

Commit

Permalink
[renovate] download install-from-binstall-release.sh into a temp dir (#…
Browse files Browse the repository at this point in the history
…4260)

Whoops, this would leave an untracked file in the repo if run (and then accidentally be checked in 😬)
  • Loading branch information
sunshowers authored Oct 11, 2023
1 parent d12cb0f commit 7d33544
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/renovate-post-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7d33544

Please sign in to comment.