From cc98369023e4bf9512ea56bc4dec0845d2b7a498 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 28 Aug 2024 15:52:40 +0100 Subject: [PATCH] filename fix --- lgsm/modules/update_xnt.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lgsm/modules/update_xnt.sh b/lgsm/modules/update_xnt.sh index fa3f350d5..d935e3989 100644 --- a/lgsm/modules/update_xnt.sh +++ b/lgsm/modules/update_xnt.sh @@ -40,8 +40,10 @@ fn_update_remotebuild() { apiurl="https://api.github.com/repos/xonotic/xonotic/tags" remotebuildresponse=$(curl -s "${apiurl}") remotebuildtag=$(echo "${remotebuildresponse}" | jq -r '.[0].name') - remotebuildurl="https://dl.xonotic.org/${remotebuildtag}.zip" - remotebuildfilename="${remotebuildtag}.zip" + remotebuildfilename=$(echo "${remotebuildtag}" | tr -d 'v') + remotebuildfilename="${remotebuildfilename}.zip" + remotebuildurl="https://dl.xonotic.org/${remotebuildfilename}" + remotebuildversion="${remotebuildtag}" if [ "${firstcommandname}" != "INSTALL" ]; then