diff --git a/scripts/send_results.sh b/scripts/send_results.sh index 2e7c438..6371826 100644 --- a/scripts/send_results.sh +++ b/scripts/send_results.sh @@ -12,10 +12,10 @@ for json_file in results/result*.json; do echo "Processing $json_file" cat "$json_file" - echo "Posting $json_file to http://${RESULT_SERVER}/write-api" + echo "Posting $json_file to ${RESULT_SERVER}/write-api" # Post JSON and capture response - response=$(curl --fail -sS -X POST "http://${RESULT_SERVER}/write-api" \ + response=$(curl --fail -sS -X POST "${RESULT_SERVER}/write-api" \ -H "X-API-Key: ${RESULT_SERVER_KEY}" \ -H "Content-Type: application/json" \ --data-binary @"$json_file") @@ -54,7 +54,7 @@ for json_file in results/result*.json; do # Upload TGZ if it exists if [[ -f "$tgz_file" ]]; then echo "Uploading $tgz_file with UUID $uuid" - curl --fail -sS -X POST "http://${RESULT_SERVER}/upload-tgz" \ + curl --fail -sS -X POST "${RESULT_SERVER}/upload-tgz" \ -H "X-API-Key: ${RESULT_SERVER_KEY}" \ -F "id=${uuid}" \ -F "timestamp=${timestamp}" \