From 8578ec6bf35d0f65dc6d91cbb2b4fd4b0c4c6796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?NaiJi=20=E2=9C=A8?= Date: Wed, 7 Sep 2022 12:33:54 +0000 Subject: [PATCH] Update 'post.sh' Remove url from file description --- post.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/post.sh b/post.sh index 3c2e29d..0f08073 100644 --- a/post.sh +++ b/post.sh @@ -35,8 +35,7 @@ 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}") + -F "file=@`ls *`") media_id=$(jq -r ".id" <<< ${media_json})