From e812d3c0e891281c1ec31313a9099cab17712aca Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Tue, 28 Feb 2023 19:25:59 +0800 Subject: [PATCH] chore: Fix `checkver.script` (#4491) * chore: Fix `checkver.script` * trid: Add comment --------- Co-authored-by: Rashil Gandhi --- bucket/pester.json | 2 +- bucket/pnpm.json | 2 +- bucket/qrencode.json | 8 ++++---- bucket/trid.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bucket/pester.json b/bucket/pester.json index bceeb0af4f..84efaa121b 100644 --- a/bucket/pester.json +++ b/bucket/pester.json @@ -28,7 +28,7 @@ " $ver = [Version]::new($matches[1])", " if ($ver -gt $latest_ver) { $latest_ver = $ver }", "}", - "if ($latest_ver -eq [Version]::new(0,0,0,0)) { error \"Could not match version string in '$url'\"; break }", + "if ($latest_ver -eq [Version]::new(0,0,0,0)) { error \"Could not match version string in '$url'\"; continue }", "Write-Output $latest_ver" ], "regex": "([\\d.]+)" diff --git a/bucket/pnpm.json b/bucket/pnpm.json index bed61fa64b..5d5228e9a2 100644 --- a/bucket/pnpm.json +++ b/bucket/pnpm.json @@ -25,7 +25,7 @@ " $ver = [Version]::new($matches[1])", " if ($ver -gt $latest_ver) { $latest_ver = $ver }", "}", - "if ($latest_ver -eq [Version]::new(0,0,0,0)) { error \"Could not match version string in '$url'\"; break }", + "if ($latest_ver -eq [Version]::new(0,0,0,0)) { error \"Could not match version string in '$url'\"; continue }", "Write-Output $latest_ver" ], "regex": "([\\d.]+)" diff --git a/bucket/qrencode.json b/bucket/qrencode.json index be434ae6bc..4b490e8916 100644 --- a/bucket/qrencode.json +++ b/bucket/qrencode.json @@ -60,13 +60,13 @@ "$libpng_page = (Invoke-WebRequest \"${base_url}mingw-w64-libpng\" -UseBasicParsing).Content", "$zlib_page = (Invoke-WebRequest \"${base_url}mingw-w64-zlib\" -UseBasicParsing).Content", "", - "if(!($qrencode_page -match $version_regex)) { error \"No match found for version\"; break }", + "if(!($qrencode_page -match $version_regex)) { error \"No match found for version\"; continue }", "$scriptver = $matches[1]", - "if(!($libwinpthread_page -match \"(?:\\d+.){3}(?:\\w+.){2}-\\d+\")) { error \"No match found for version\"; break }", + "if(!($libwinpthread_page -match \"(?:\\d+.){3}(?:\\w+.){2}-\\d+\")) { error \"No match found for version\"; continue }", "$libwinpthread_version = $matches[0]", - "if(!($libpng_page -match $version_regex)) { error \"No match found for version\"; break }", + "if(!($libpng_page -match $version_regex)) { error \"No match found for version\"; continue }", "$libpng_version = $matches[1]", - "if(!($zlib_page -match $version_regex)) { error \"No match found for version\"; break }", + "if(!($zlib_page -match $version_regex)) { error \"No match found for version\"; continue }", "$zlib_version = $matches[1]", "", "Write-Output $scriptver $libwinpthread_version $libpng_version $zlib_version" diff --git a/bucket/trid.json b/bucket/trid.json index 4c67a9e6aa..b66ebc8838 100644 --- a/bucket/trid.json +++ b/bucket/trid.json @@ -1,4 +1,5 @@ { + "##": "Autoupdate only updates TrID Definitions. If the main program updates, please change hashes manually", "version": "2.24-23.02.28", "description": "A utility designed to identify file types from their binary signatures.", "homepage": "https://www.mark0.net/soft-trid-e.html", @@ -17,7 +18,6 @@ "replace": "${1}-${4}.${3}.${2}" }, "autoupdate": { - "note": "Autoupdate only updates TrID Definitions. If the main program updates, please change hashes manually", "url": "https://mark0.net/download/triddefs.zip" } }