Change -d with --data-binary
This commit is contained in:
parent
a84b8ad978
commit
6853527aac
4
mbin.sh
4
mbin.sh
|
@ -8,10 +8,10 @@ EDITOR=${EDITOR:-vim}
|
||||||
if [ -t 0 ]; then
|
if [ -t 0 ]; then
|
||||||
tmp_file=$(mktemp)
|
tmp_file=$(mktemp)
|
||||||
$EDITOR $tmp_file
|
$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
|
rm $tmp_file
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
link=$(echo $op | cut -f2 -d'/')
|
link=$(echo $op | cut -f2 -d'/')
|
||||||
|
|
Loading…
Reference in New Issue