Skip to content

Commit

Permalink
fix(script): version check broken
Browse files Browse the repository at this point in the history
  • Loading branch information
haruue committed Nov 5, 2023
1 parent a4a2f66 commit 14e3211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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%'"'}

Expand Down

0 comments on commit 14e3211

Please sign in to comment.