mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-07 18:08:26 -06:00
remove debug step, try GH_TOKEN authorization, run.sh add Bearer token auth
This commit is contained in:
5
run.sh
5
run.sh
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user