From 8c5004c24d339de6d6b4544283250401da0df443 Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Mon, 10 Oct 2022 21:51:34 -0500 Subject: [PATCH] reformat curl --- release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/release.sh b/release.sh index 4e93a62..b9b38ab 100644 --- a/release.sh +++ b/release.sh @@ -2,7 +2,7 @@ set -x TOKEN=$(< token.txt) -git commit -a +EDITOR=nano git commit -a COMMIT=$(git log | head -n 1 | cut -d' ' -f2) echo $COMMIT @@ -26,9 +26,9 @@ OUT=$(curl -X 'POST' \ ID=$(echo $OUT | cut -d',' -f 1 | cut -d':' -f 2) -OUT=curl -X 'POST' \ +OUT=$(curl -X 'POST' \ 'https://git.deck.sh/api/v1/repos/Interfaz/ff/releases/'$ID'/assets?token='$TOKEN'' \ -H 'accept: application/json' \ -H 'Content-Type: multipart/form-data' \ - -F 'attachment=@'release-$COMMIT.zip';type=application/x-zip-compressed' + -F 'attachment=@'release-$COMMIT.zip';type=application/x-zip-compressed')