From c9ac0020d71cf76dff84e1bc9f0e39b8bb8f4143 Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 7 Apr 2022 20:59:09 +0300 Subject: [PATCH] make gateway a variable --- build/builtin-actors/fetch-bundles.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/builtin-actors/fetch-bundles.sh b/build/builtin-actors/fetch-bundles.sh index 2b3c9704b..49231cd4a 100755 --- a/build/builtin-actors/fetch-bundles.sh +++ b/build/builtin-actors/fetch-bundles.sh @@ -3,6 +3,9 @@ set -e cd $(dirname "$0") +# gateway to use +dweb="dweb.link" + actors7_cid="" actors7_hash="" actors8_cid="bafybeictmywrut5tprz5fnoti6adfwuvixvrfardhqwldxosmdsfavc56e" @@ -36,7 +39,7 @@ fetch() { return 0 else echo "fetching $cid to $output" - curl -k "https://dweb.link/ipfs/$cid" -o $output + curl -k "https://$dweb/ipfs/$cid" -o $output check $output $hash || die "hash mismatch" fi }