Skip to content

Commit f076a21

Browse files
author
dgibbs64
committed
fix(xnt): derive sha512 URL from remotebuildfilename not remotebuildtag
Tag format is xonotic-v0.8.6 but the sha512 file is named xonotic-0.8.6.sha512 (without the v). Using remotebuildtag directly produced a 404. Deriving from remotebuildfilename (which already has the v stripped by tr -d v) gives the correct URL.
1 parent 6ecb60e commit f076a21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lgsm/modules/update_xnt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn_update_remotebuild() {
5555
remotebuildfilename="${remotebuildfilename}.zip"
5656
remotebuildurl="https://dl.xonotic.org/${remotebuildfilename}"
5757
remotebuild="${remotebuildtag}"
58-
remotebuildhash=$(curl -s "https://dl.xonotic.org/${remotebuildtag}.sha512" | grep "${remotebuildfilename}$" | grep -oE '[a-f0-9]{128}')
58+
remotebuildhash=$(curl -s "https://dl.xonotic.org/${remotebuildfilename%.zip}.sha512" | grep "${remotebuildfilename}$" | grep -oE '[a-f0-9]{128}')
5959

6060
if [ "${firstcommandname}" != "INSTALL" ]; then
6161
fn_print_dots "Checking remote build: ${remotelocation}"

0 commit comments

Comments
 (0)