remove debug step, try GH_TOKEN authorization, run.sh add Bearer token auth

This commit is contained in:
2024-10-03 14:39:59 -05:00
parent a1689cd008
commit 4c4cb0a0c6
2 changed files with 9 additions and 9 deletions

5
run.sh
View File

@@ -17,7 +17,10 @@ fi
# Fetch the latest release download URL
REPO="Xevion/spotify-player-quickauth"
API_URL="https://api.github.com/repos/$REPO/releases/latest"
DOWNLOAD_URL=$(curl -s $API_URL | grep "browser_download_url" | grep $target | cut -d '"' -f 4)
if [ -n "$GH_TOKEN" ]; then
API_URL="$API_URL --header 'Authorization: Bearer $GH_TOKEN'"
fi
DOWNLOAD_URL=$(curl -s $API_URL | grep "browser_download_url" | grep $target | cut -d '"' -f 4)
if [ -z "$DOWNLOAD_URL" ]; then
echo "No release could be found for the current platform"