mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-02 03:57:38 +03:00
fix(scripts): extra line in installed version
Checking for installed version ... v2.5.2 v0.47.1 Checking for latest version ... v2.5.2
This commit is contained in:
parent
685cd3663b
commit
d4a1c2b580
1 changed files with 1 additions and 1 deletions
|
@ -872,7 +872,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[.0-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