Skip to content

Commit

Permalink
tell curl to follow redirects to fix net scripts (solana-labs#13589)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakridge authored Nov 14, 2020
1 parent 34bf80b commit 13f3043
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions net/net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -498,19 +498,21 @@ prepareDeploy() {
case $deployMethod in
tar)
if [[ -n $releaseChannel ]]; then
echo "Downloading release from channel: $releaseChannel"
rm -f "$SOLANA_ROOT"/solana-release.tar.bz2
declare updateDownloadUrl=http://release.solana.com/"$releaseChannel"/solana-release-x86_64-unknown-linux-gnu.tar.bz2
(
set -x
curl --retry 5 --retry-delay 2 --retry-connrefused \
curl -L -I "$updateDownloadUrl"
curl -L --retry 5 --retry-delay 2 --retry-connrefused \
-o "$SOLANA_ROOT"/solana-release.tar.bz2 "$updateDownloadUrl"
)
tarballFilename="$SOLANA_ROOT"/solana-release.tar.bz2
fi
(
set -x
rm -rf "$SOLANA_ROOT"/solana-release
(cd "$SOLANA_ROOT"; tar jxv) < "$tarballFilename"
cd "$SOLANA_ROOT"; tar jfxv "$tarballFilename"
cat "$SOLANA_ROOT"/solana-release/version.yml
)
;;
Expand Down

0 comments on commit 13f3043

Please sign in to comment.