From 6853527aacfab939ce808b2615f00f9606c5b201 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Fri, 16 Nov 2018 15:11:47 +0530 Subject: [PATCH] Change -d with --data-binary --- mbin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbin.sh b/mbin.sh index 5d5e899..0068afe 100755 --- a/mbin.sh +++ b/mbin.sh @@ -8,10 +8,10 @@ EDITOR=${EDITOR:-vim} if [ -t 0 ]; then tmp_file=$(mktemp) $EDITOR $tmp_file - op=$(curl -s -d "@${tmp_file}" -H "Content-Type:text/plain" $MKR_BIN) + op=$(curl -s --data-binary "@${tmp_file}" -H "Content-Type:text/plain" $MKR_BIN) rm $tmp_file else - op=$(curl -s -d "@-" -H "Content-Type:text/plain" $MKR_BIN) + op=$(curl -s --data-binary "@-" -H "Content-Type:text/plain" $MKR_BIN) fi link=$(echo $op | cut -f2 -d'/')