Skip to content

Commit 0875c3c

Browse files
Update install.sh
Co-authored-by: Alessio Perugini <[email protected]>
1 parent 593c140 commit 0875c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ initDownloadTool() {
8484
checkLatestVersion() {
8585
# Use the GitHub releases webpage to find the latest version for this project
8686
# so we don't get rate-limited.
87-
CHECKLATESTVERSION_REGEX="v?[0-9][A-Za-z0-9\.-]*"
87+
CHECKLATESTVERSION_REGEX="v[0-9][A-Za-z0-9\.-]*"
8888
CHECKLATESTVERSION_LATEST_URL="https://github.com/${PROJECT_OWNER}/${PROJECT_NAME}/releases/latest"
8989
if [ "$DOWNLOAD_TOOL" = "curl" ]; then
9090
CHECKLATESTVERSION_TAG=$(curl -SsL $CHECKLATESTVERSION_LATEST_URL | grep -o "<title>Release $CHECKLATESTVERSION_REGEX · ${PROJECT_OWNER}/${PROJECT_NAME}" | grep -o "$CHECKLATESTVERSION_REGEX")

0 commit comments

Comments
 (0)