Created
October 15, 2020 20:44
-
-
Save tzdybal/ee567b06586135b5240b366a4bf89662 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
gateways="ipfs.ink ipfs.io gateway.ipfs.io ipfs.best-practice.se cloudflare-ipfs.com ipfs.infura.io trusti.id ipfs.sloppyta.co 10.via0.com ipfs.mttk.net" | |
cid=$1 | |
if [ "$cid" == "" ]; then | |
exit 1 | |
fi | |
for gw in $gateways; do | |
curl "$gw/ipfs/$cid" -o /dev/null & | |
echo $gw | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment