mirror of
https://github.com/danog/yayponies-ipfs.git
synced 2024-11-26 20:04:44 +01:00
Fixes
This commit is contained in:
parent
3b2cfb815e
commit
37423ea070
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
cd $1/ypmirror
|
||||
cd $1
|
||||
git pull origin master
|
||||
cd ypmirror
|
||||
git reset --hard
|
||||
git pull origin master
|
||||
|
||||
@ -7,6 +9,7 @@ for f in $(find . -type f -name '*.php'); do
|
||||
curl "$2/$f" -so "$f"
|
||||
mv "$f" "${f/php/html}"
|
||||
done
|
||||
find . -type f -exec sed 's/\.php/\.html/g' -i {} +
|
||||
|
||||
cd ..
|
||||
hash=$(ipfs name publish /ipfs/$(ipfs add -r ypmirror/ | sed '/ ypmirror$/!d;s/added //;s/ .*//g') | sed 's/:.*//g;s/Published to //g')
|
||||
|
Loading…
Reference in New Issue
Block a user