mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
bzzup shell script updated for compatibility with new resolver.
This commit is contained in:
parent
b2330c4e2e
commit
e9ad659eb1
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ delimiter='{"entries":[{'
|
||||||
|
|
||||||
if [ -f "$1" ]; then
|
if [ -f "$1" ]; then
|
||||||
hash=`wget -q -O- --post-file="$1" http://localhost:8500/raw`
|
hash=`wget -q -O- --post-file="$1" http://localhost:8500/raw`
|
||||||
mime=`file --mime-type -b "$1"`
|
mime=`mimetype -b "$1"`
|
||||||
wget -q -O- --post-data="$delimiter\"hash\":\"$hash\",\"contentType\":\"$mime\"}]}" http://localhost:8500/raw
|
wget -q -O- --post-data="$delimiter\"hash\":\"$hash\",\"contentType\":\"$mime\"}]}" http://localhost:8500/raw
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ pushd "$bzzroot" > /dev/null
|
||||||
|
|
||||||
(for path in `find . -type f`
|
(for path in `find . -type f`
|
||||||
do
|
do
|
||||||
name=`echo "$path" | cut -c2-`
|
name=`echo "$path" | cut -c3-`
|
||||||
[ _`basename "$name"` = "_$INDEX" ] && name=`dirname "$name"`
|
[ _`basename "$name"` = "_$INDEX" ] && name=`dirname "$name"`
|
||||||
echo -n "$delimiter"
|
echo -n "$delimiter"
|
||||||
hash=`wget -q -O- --post-file="$path" http://localhost:8500/raw`
|
hash=`wget -q -O- --post-file="$path" http://localhost:8500/raw`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue