Cosmetic changes
This commit is contained in:
parent
89c3eff9d4
commit
1a690be543
6
post.sh
6
post.sh
|
@ -33,7 +33,11 @@ mkdir source
|
|||
cd source
|
||||
wget "${source_url}" 2> /dev/null || (echo "Error with ${source_url}" && exit 1)
|
||||
|
||||
media_json=$(curl -X POST "${api_base_url}/api/v1/media" -H "Authorization: Bearer ${access_token}" -F "file=@`ls *`" -F "description=${source_url}")
|
||||
media_json=$(curl -X POST "${api_base_url}/api/v1/media" \
|
||||
-H "Authorization: Bearer ${access_token}"\
|
||||
-F "file=@`ls *`"
|
||||
-F "description=${source_url}")
|
||||
|
||||
media_id=$(jq -r ".id" <<< ${media_json})
|
||||
|
||||
echo $media_json
|
||||
|
|
Loading…
Reference in New Issue