From 30cc1ea710a245fab68a9f227aeb537fb4e8e6d4 Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Fri, 1 Nov 2024 07:07:09 +0100 Subject: [PATCH] debug upload curl command --- script.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/script.sh b/script.sh index f72e63c..84b91d7 100644 --- a/script.sh +++ b/script.sh @@ -37,6 +37,7 @@ curl \ for f in ${PLUGIN_FILE//,/ }; do BASE_FILENAME=`basename $f` echo "INFO: uploading $BASE_FILENAME to $API_URL" + echo "curl --location --user ${PLUGIN_USER}:${PLUGIN_TOKEN} --upload-file $f --write-out %{http_code} --silent --output /dev/null $PACKAGE_URL/$BASE_FILENAME" status_code=`curl --location --user ${PLUGIN_USER}:${PLUGIN_TOKEN} --upload-file $f --write-out %{http_code} --silent --output /dev/null $PACKAGE_URL/$BASE_FILENAME` if [ $status_code -ne 201 ]; then