mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
mimetype -> file command (temporary)
This commit is contained in:
parent
bd277f41b4
commit
56ae10a0e6
1 changed files with 1 additions and 1 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=`mimetype -b "$1"`
|
mime=`file --mime-type -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue