binary setup script fix

This commit is contained in:
yusing 2024-03-29 23:07:17 +00:00
parent 3505e8ff7e
commit 2657b1f726

View file

@ -5,7 +5,7 @@ BIN_URL="${REPO_URL}/releases/download/${VERSION}/go-proxy"
SRC_URL="${REPO_URL}/archive/refs/tags/${VERSION}.tar.gz"
APP_ROOT="/opt/go-proxy/${VERSION}"
if [ -z "$VERSION" || "$VERSION" = "latest" ]; then
if [ -z "$VERSION" ] || [ "$VERSION" = "latest" ]; then
VERSION_URL="${REPO_URL}/raw/main/version.txt"
VERSION=$(wget -qO- "$VERSION_URL")
fi