Skip to content

Commit

Permalink
Remove unix-specific dependencies in installer script
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Aug 10, 2024
1 parent ce083ab commit 915c80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fi
# Download the file using curl and make sure it was successful
echo "[2 / 3] Downloading '$RELEASE_ASSET_NAME'"
RELEASE_DOWNLOAD_URL="https://api.github.com/repos/$REPOSITORY/releases/assets/$RELEASE_ASSET_ID"
ZIP_FILE=$(echo "$RELEASE_DOWNLOAD_URL" | rev | cut -d '/' -f 1 | rev)
ZIP_FILE="${RELEASE_ASSET_NAME%.*}.zip"
if [ ! -z "$GITHUB_PAT" ]; then
curl --proto '=https' --tlsv1.2 -L -o "$ZIP_FILE" -sSf "$RELEASE_DOWNLOAD_URL" \
-H "X-GitHub-Api-Version: 2022-11-28" -H "Accept: application/octet-stream" -H "Authorization: token $GITHUB_PAT"
Expand Down

0 comments on commit 915c80d

Please sign in to comment.