From 7f0f61d1c8b0ace4dfd503bd7a1e9424082f7ee4 Mon Sep 17 00:00:00 2001 From: Github CLI Date: Sat, 28 Jan 2023 23:17:46 -0300 Subject: [PATCH] fixng typo --- github-cli.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github-cli.sh b/github-cli.sh index 4cc43a9..54feff4 100755 --- a/github-cli.sh +++ b/github-cli.sh @@ -19,7 +19,7 @@ create_release(){ "prerelease": true }' | sed -r 's/[\]{2}/\\/g') (curl -s -X POST -w '%{stderr}%{http_code}\n%{stdout}\n' \ - -H "Authorization: token $${REPO_TOKEN}" \ + -H "Authorization: token ${REPO_TOKEN}" \ "https://api.github.com/repos/${USERNAME}/${REPOSITORY}/releases?access_token=$REPO_TOKEN" \ --data "$PAYLOAD" |\ tee -a /dev/stderr | jq -r '.id') 2> /tmp/stderr 1> /tmp/stdout @@ -36,7 +36,7 @@ create_release(){ upload_file(){ local OUT=$(curl --data-binary "@$SOURCE_FILE" -w "\n%{http_code}\n" \ -s -X POST -H 'Content-Type: application/octet-stream' \ - -H "Authorization: token $${REPO_TOKEN}" \ + -H "Authorization: token ${REPO_TOKEN}" \ "https://uploads.github.com/repos/${USERNAME}/${REPOSITORY}/releases/$RELEASE_ID/assets?name=$TARGET_FILE" )