File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
7373if (-not $DOWNLOAD_URL ) {
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ echo -e "${YELLOW}[1/4] Downloading ...${NC}"
6363if [ " $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)
6565else
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} "
6767fi
6868
6969if [ -z " $DOWNLOAD_URL " ]; then
You can’t perform that action at this time.
0 commit comments