Silencing curl output in linux script
This commit is contained in:
parent
1d8f588d48
commit
8d3af80ac2
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ EOF
|
|||
}
|
||||
|
||||
upload() {
|
||||
RESPONSE="$(curl -F "token={{ token }}" -F "upload=@${1}" {{ upload_url }})";
|
||||
RESPONSE="$(curl -s -F "token={{ token }}" -F "upload=@${1}" {{ upload_url }})";
|
||||
|
||||
if jq -e . >/dev/null 2>&1 <<<"$RESPONSE"; then
|
||||
# Response is JSON
|
||||
|
|
Loading…
Add table
Reference in a new issue