mirror of
https://github.com/akatsukiro/lsky-pro-install-script.git
synced 2025-06-08 05:53:04 +08:00
refactor: 优化链接形式
This commit is contained in:
parent
93d4aa1868
commit
91ba13efef
@ -47,10 +47,10 @@ pre_check() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${CN}" ]]; then
|
if [[ -z "${CN}" ]]; then
|
||||||
LSKYPRO_RELEASE_URL="github.com/lsky-org/lsky-pro/releases/download"
|
LSKYPRO_RELEASE_URL="https://github.com/lsky-org/lsky-pro/releases/download"
|
||||||
LSKY_VERSION=$(curl -s "https://api.github.com/repos/lsky-org/lsky-pro/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
LSKY_VERSION=$(curl -s "https://api.github.com/repos/lsky-org/lsky-pro/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
||||||
else
|
else
|
||||||
LSKYPRO_RELEASE_URL="github.com/lsky-org/lsky-pro/releases/download"
|
LSKYPRO_RELEASE_URL="https://github.com/lsky-org/lsky-pro/releases/download"
|
||||||
LSKY_VERSION=$(curl -s "https://api.github.com/repos/lsky-org/lsky-pro/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
LSKY_VERSION=$(curl -s "https://api.github.com/repos/lsky-org/lsky-pro/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user