From a2ccce42349f55e78450f0a9242e3e2f8f4ca445 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 19 Apr 2026 10:27:13 +0100 Subject: [PATCH] feat(etl): improve MD5 hash extraction Updates the MD5 hash parsing to use a specific regex for 32-character hexadecimal strings, providing a more robust extraction from the release body than relying on the last field of the line. --- lgsm/modules/update_etl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/modules/update_etl.sh b/lgsm/modules/update_etl.sh index b70e2cc97..8486343e2 100644 --- a/lgsm/modules/update_etl.sh +++ b/lgsm/modules/update_etl.sh @@ -44,7 +44,7 @@ fn_update_remotebuild() { remotebuildfilename=$(echo "${remotebuildresponse}" | jq -r '.assets[] | select(.browser_download_url | contains("i386-et-260b")) | .name') remotebuildurl=$(echo "${remotebuildresponse}" | jq -r '.assets[] | select(.browser_download_url | contains("i386-et-260b")) | .browser_download_url') remotebuild=$(echo "${remotebuildresponse}" | jq -r '.tag_name') - remotebuildhash=$(echo "${remotebuildresponse}" | jq -r '.body' | grep 'MD5' | awk '{print $NF}') + remotebuildhash=$(echo "${remotebuildresponse}" | jq -r '.body' | grep 'MD5' | grep -oE '[a-f0-9]{32}') if [ "${firstcommandname}" != "INSTALL" ]; then fn_print_dots "Checking remote build: ${remotelocation}"