mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-03 20:47:38 +03:00
fix(script): version check broken
This commit is contained in:
parent
a4a2f662bf
commit
14e3211226
1 changed files with 1 additions and 1 deletions
|
@ -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%'"'}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue