From c1ca52ec6641e9482ec5592a09f8db6d401cea27 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 15 Jun 2025 21:58:40 +1200 Subject: [PATCH] 'Generic Commit' --- sos/sos | 9 ++++++++- whatsdirty/publish.sh | 3 --- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sos/sos b/sos/sos index cedf02e..6011122 100755 --- a/sos/sos +++ b/sos/sos @@ -108,7 +108,14 @@ EOF if [ "$DOESEXIT" == "true" ]; then 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}" \ -F "metadata=${METADATA_JSON}" \ -F "hash=${LOCALHASH}" \ diff --git a/whatsdirty/publish.sh b/whatsdirty/publish.sh index d03221e..c59b021 100755 --- a/whatsdirty/publish.sh +++ b/whatsdirty/publish.sh @@ -10,6 +10,3 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" mkdir -p ${SCRIPT_DIR}/tool cp ${SCRIPT_DIR}/whatsdirty.sh ${SCRIPT_DIR}/tool - - -