mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-03 04:27:39 +03:00
chore: fix version check in install_server.sh
This commit is contained in:
parent
08372d972c
commit
099faa93a4
1 changed files with 1 additions and 1 deletions
|
@ -758,7 +758,7 @@ is_hysteria1_version() {
|
|||
get_installed_version() {
|
||||
if is_hysteria_installed; then
|
||||
if "$EXECUTABLE_INSTALL_PATH" version > /dev/null 2>&1; then
|
||||
"$EXECUTABLE_INSTALL_PATH" version | grep Version | grep -o 'v[.1-9]*'
|
||||
"$EXECUTABLE_INSTALL_PATH" version | grep Version | grep -o 'v[.0-9]*'
|
||||
elif "$EXECUTABLE_INSTALL_PATH" -v > /dev/null 2>&1; then
|
||||
# hysteria 1
|
||||
"$EXECUTABLE_INSTALL_PATH" -v | cut -d ' ' -f 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue