fix(script): version check broken

This commit is contained in:
Haruue Icymoon 2023-11-05 16:17:06 +08:00
parent a4a2f662bf
commit 14e3211226
No known key found for this signature in database
GPG key ID: F6083B28CBCBC148

View file

@ -809,7 +809,7 @@ get_latest_version() {
exit 11
fi
local _latest_version=$(grep 'lver' "$_tmpfile" | head -1 | grep -o '"v.*"')
local _latest_version=$(grep -oP '"lver":\s*\K"v.*?"' "$_tmpfile" | head -1)
_latest_version=${_latest_version#'"'}
_latest_version=${_latest_version%'"'}