From d6ec733c0ba16d150e23996da64ae336a85ca912 Mon Sep 17 00:00:00 2001 From: konsthol Date: Tue, 17 Dec 2024 13:35:36 +0200 Subject: [PATCH] implemented missing semicolon --- setupSingleBinary.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setupSingleBinary.sh b/setupSingleBinary.sh index 0daa430..92419f2 100644 --- a/setupSingleBinary.sh +++ b/setupSingleBinary.sh @@ -39,11 +39,12 @@ WantedBy=multi-user.target EOF ARCH="$(uname -m)" +LATEST_RELEASE="$(curl -s https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/latest | jq -r '.tag_name')" if [ "$ARCH" = "x86_64" ]; then - wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/v1.0.0/wolServer-x86_64 + wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/"$LATEST_RELEASE"/wolServer-x86_64 elif [ "$ARCH" = "aarch64" ]; then - wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/v1.0.0/wolServer-arm + wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/"$LATEST_RELEASE"/wolServer-arm fi chmod +x app/wolServer