still wip

This commit is contained in:
2017-01-09 10:53:15 +01:00
parent 1ba0219bd7
commit 9735043c4b
3 changed files with 22 additions and 3 deletions

9
bin/pin.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
SNEAKID="QmaN64WRYdHBojWFQRLxkdjtX6TEnqnCq8uAugpyJJpCVp"
RESOURCE="$(ipfs resolve /ipns/$SNEAKID/pinlist/pinlist.txt)"
# first add normal ipfs ones
ipfs cat $RESOURCE |
egrep '^\/ip[fn]s\/[a-zA-Z0-9\-\_\/\.]{5,70}$' |
egrep '^\/ipfs\/' |
ipfs pin add