From cb83a9a7e6af28388f769f53207308993b91fe33 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sat, 29 Oct 2022 23:10:24 +0200 Subject: [PATCH] chore: i love refrigerators --- deploy.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/deploy.sh b/deploy.sh index 95accb0..2f3bd16 100644 --- a/deploy.sh +++ b/deploy.sh @@ -6,7 +6,7 @@ something_went_wrong () { curl \ -X POST \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $($COMMITSTATUS)" \ + -H "Authorization: Bearer $COMMITSTATUS" \ https://api.github.com/repos/SrIzan10/vinci/statuses/$(git rev-parse origin/main) \ -d '{"state":"failure","description":"The build errored!","context":"deployment/rpi"}' } @@ -16,7 +16,7 @@ something_went_wrong () { curl \ -X POST \ -H "Accept: application/vnd.github+json" \ --H "Authorization: Bearer $($COMMITSTATUS)" \ +-H "Authorization: Bearer $COMMITSTATUS" \ https://api.github.com/repos/SrIzan10/vinci/statuses/$(git rev-parse origin/main) \ -d '{"state":"pending","description":"Building...","context":"deployment/rpi"}' @@ -34,9 +34,7 @@ https://api.github.com/repos/SrIzan10/vinci/statuses/$(git rev-parse origin/main curl \ -X POST \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $($COMMITSTATUS)" \ + -H "Authorization: Bearer $COMMITSTATUS" \ https://api.github.com/repos/SrIzan10/vinci/statuses/$(git rev-parse origin/main) \ -d '{"state":"success","description":"The build errored!","context":"deployment/rpi"}' -} || { - something_went_wrong() -} \ No newline at end of file +} || something_went_wrong() \ No newline at end of file