make gateway a variable

This commit is contained in:
vyzo 2022-04-07 20:59:09 +03:00
parent 71913521f9
commit c9ac0020d7

View File

@ -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
}