Skip to content

Commit 63211d7

Browse files
committed
fix: url to download from installer scripts
1 parent de6fcdc commit 63211d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if ($VERSION -eq "latest") {
6767
$_.name -match "windows" -and $_.name -match $ARCH -and $_.name.EndsWith(".zip")
6868
} | Select-Object -First 1 -ExpandProperty browser_download_url
6969
} else {
70-
$DOWNLOAD_URL = "https://github.com/$REPO/releases/download/$VERSION/grhooks_${VERSION}_${ARCH}_windows.zip"
70+
$DOWNLOAD_URL = "https://github.com/$REPO/releases/download/$VERSION/grhooks_${VERSION}_windows_${ARCH}_windows.zip"
7171
}
7272

7373
if (-not $DOWNLOAD_URL) {

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ echo -e "${YELLOW}[1/4] Downloading ...${NC}"
6363
if [ "$VERSION" == "latest" ]; then
6464
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/$REPO/releases/latest | grep "browser_download_url.*$ARCH" | grep "linux.*$PKG_TYPE\"" | cut -d '"' -f 4)
6565
else
66-
DOWNLOAD_URL="https://github.com/$REPO/releases/download/$VERSION/grhooks_${VERSION#v}_${ARCH}.${PKG_TYPE}"
66+
DOWNLOAD_URL="https://github.com/$REPO/releases/download/$VERSION/grhooks_${VERSION}_linux_${ARCH}.${PKG_TYPE}"
6767
fi
6868

6969
if [ -z "$DOWNLOAD_URL" ]; then

0 commit comments

Comments
 (0)