fix(scripts): make build_test_image bundle cleanup robust

This commit is contained in:
andrussal 2025-12-17 19:24:55 +01:00
parent acaede4b81
commit 40cddbea42

View File

@ -139,7 +139,7 @@ build_test_image::restore_from_bundle() {
echo "==> Restoring binaries/circuits from ${TAR_PATH}"
local tmp_extract
tmp_extract="$(common::tmpdir nomos-bundle-extract.XXXXXX)"
trap 'rm -rf "${tmp_extract}"' RETURN
trap "rm -rf -- '${tmp_extract}'" RETURN
tar -xzf "${TAR_PATH}" -C "${tmp_extract}"
local artifacts="${tmp_extract}/artifacts"