From c76a8334a67e6eebe10e866c827b636727592de3 Mon Sep 17 00:00:00 2001
From: Your Name <j@842.be>
Date: Thu, 29 May 2025 23:27:07 +1200
Subject: [PATCH] :-'Generic Commit'

---
 sos/sos | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sos/sos b/sos/sos
index ef74922..1fee1c6 100755
--- a/sos/sos
+++ b/sos/sos
@@ -54,13 +54,12 @@ function upload() {
     TARGET_URL="https://$server/upload"
     echo "Uploading $file to $TARGET_URL"
 
-    METADATA_JSON=$(cat<<EOF
+read -r -d '' METADATA_JSON <<EOF
 {
   "labeltags": ["$label"],
   "description": "Uploaded by sos"
 }
 EOF
-)
 
     echo "Metadata:"
     echo "$METADATA_JSON | jq"