make gateway a variable
This commit is contained in:
parent
71913521f9
commit
c9ac0020d7
@ -3,6 +3,9 @@ set -e
|
|||||||
|
|
||||||
cd $(dirname "$0")
|
cd $(dirname "$0")
|
||||||
|
|
||||||
|
# gateway to use
|
||||||
|
dweb="dweb.link"
|
||||||
|
|
||||||
actors7_cid=""
|
actors7_cid=""
|
||||||
actors7_hash=""
|
actors7_hash=""
|
||||||
actors8_cid="bafybeictmywrut5tprz5fnoti6adfwuvixvrfardhqwldxosmdsfavc56e"
|
actors8_cid="bafybeictmywrut5tprz5fnoti6adfwuvixvrfardhqwldxosmdsfavc56e"
|
||||||
@ -36,7 +39,7 @@ fetch() {
|
|||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
echo "fetching $cid to $output"
|
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"
|
check $output $hash || die "hash mismatch"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user