Skip to content

Commit

Permalink
Use https (solana-labs#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay authored Oct 14, 2020
1 parent 9501e40 commit a3f4071
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bpf-sdk-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ set -x

if [[ ! -r "$cacheDir"/bpf-sdk.tar.bz2 ]]; then
mkdir -p "$cacheDir"
curl -L --retry 5 --retry-delay 2 -o "$cacheDir"/bpf-sdk.tar.bz2 \
http://solana-sdk.s3.amazonaws.com/"$channel"/bpf-sdk.tar.bz2
curl -L --retry 5 --retry-delay 2 -o "$cacheDir"/bpf-sdk.tar.bz2 \
https://solana-sdk.s3.amazonaws.com/"$channel"/bpf-sdk.tar.bz2
fi

rm -rf "$installDir"
mkdir -p "$installDir"
( cd "$installDir"; tar jxf "$cacheDir"/bpf-sdk.tar.bz2 )
(
cd "$installDir"
tar jxf "$cacheDir"/bpf-sdk.tar.bz2
)
cat "$installDir"/bpf-sdk/version.txt

0 comments on commit a3f4071

Please sign in to comment.