Skip to content

Commit a2ccce4

Browse files
committed
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.
1 parent eab9e66 commit a2ccce4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lgsm/modules/update_etl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn_update_remotebuild() {
4444
remotebuildfilename=$(echo "${remotebuildresponse}" | jq -r '.assets[] | select(.browser_download_url | contains("i386-et-260b")) | .name')
4545
remotebuildurl=$(echo "${remotebuildresponse}" | jq -r '.assets[] | select(.browser_download_url | contains("i386-et-260b")) | .browser_download_url')
4646
remotebuild=$(echo "${remotebuildresponse}" | jq -r '.tag_name')
47-
remotebuildhash=$(echo "${remotebuildresponse}" | jq -r '.body' | grep 'MD5' | awk '{print $NF}')
47+
remotebuildhash=$(echo "${remotebuildresponse}" | jq -r '.body' | grep 'MD5' | grep -oE '[a-f0-9]{32}')
4848

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

0 commit comments

Comments
 (0)