'Generic Commit'
All checks were successful
Build-Test-Publish / build (push) Successful in 16s

This commit is contained in:
Your Name 2025-06-15 21:58:40 +12:00
parent 453d38c62b
commit c1ca52ec66
2 changed files with 8 additions and 4 deletions

View File

@ -108,7 +108,14 @@ EOF
if [ "$DOESEXIT" == "true" ]; then if [ "$DOESEXIT" == "true" ]; then
echo "File already exists, skipping upload" echo "File already exists, skipping upload"
# UPDATE the metadata # UPDATE the metadata - this approach recommended by SWE-1 so we're not using form data...
# curl -X PUT \
# -H "Authorization: Bearer ${WRITE_TOKEN}" \
# -H "Content-Type: application/json" \
# -d "{\"hash\":\"${LOCALHASH}\", \"metadata\":${METADATA_JSON}}" \
# "$TARGET_SERVER/update" \
# || die "Failed to update metadata at $TARGET_SERVER/update"
curl -X PUT -H "Authorization: Bearer ${WRITE_TOKEN}" \ curl -X PUT -H "Authorization: Bearer ${WRITE_TOKEN}" \
-F "metadata=${METADATA_JSON}" \ -F "metadata=${METADATA_JSON}" \
-F "hash=${LOCALHASH}" \ -F "hash=${LOCALHASH}" \

View File

@ -10,6 +10,3 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
mkdir -p ${SCRIPT_DIR}/tool mkdir -p ${SCRIPT_DIR}/tool
cp ${SCRIPT_DIR}/whatsdirty.sh ${SCRIPT_DIR}/tool cp ${SCRIPT_DIR}/whatsdirty.sh ${SCRIPT_DIR}/tool