From 5433652c70163e2c2e2eae1900c6f8cc50d49d52 Mon Sep 17 00:00:00 2001 From: Michael Chus Date: Thu, 26 Mar 2026 20:29:10 +0300 Subject: [PATCH] fix(cublas): prevent double-print in lookup_pkg awk END block awk exit in the blank-line block jumps to END, which printed the result again causing repo_sha to contain the hash twice with a newline, breaking the sha256 string comparison. Co-Authored-By: Claude Sonnet 4.6 --- iso/builder/build-cublas.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iso/builder/build-cublas.sh b/iso/builder/build-cublas.sh index cbf19a2..9cf8971 100644 --- a/iso/builder/build-cublas.sh +++ b/iso/builder/build-cublas.sh @@ -50,12 +50,13 @@ lookup_pkg() { /^$/ { if (cur_pkg == pkg && cur_ver == ver) { print cur_file " " cur_sha + printed=1 exit } cur_pkg=""; cur_ver=""; cur_file=""; cur_sha="" } END { - if (cur_pkg == pkg && cur_ver == ver) { + if (!printed && cur_pkg == pkg && cur_ver == ver) { print cur_file " " cur_sha } }'