From 56ae10a0e647ec9b7e8d672960cf51b691121aa9 Mon Sep 17 00:00:00 2001 From: zelig Date: Thu, 4 Jun 2015 14:28:00 +0100 Subject: [PATCH] mimetype -> file command (temporary) --- bzz/bzzup/bzzup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bzz/bzzup/bzzup.sh b/bzz/bzzup/bzzup.sh index 1593ff9b45..aaf6b15078 100755 --- a/bzz/bzzup/bzzup.sh +++ b/bzz/bzzup/bzzup.sh @@ -6,7 +6,7 @@ delimiter='{"entries":[{' if [ -f "$1" ]; then 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 echo