From 96b139d497f30241f2fe3441686378635202e68c Mon Sep 17 00:00:00 2001 From: miampf Date: Thu, 20 Feb 2025 17:10:44 +0100 Subject: [PATCH] Please shellcheck --- .github/workflows/check-measurements-reproducibility.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-measurements-reproducibility.yml b/.github/workflows/check-measurements-reproducibility.yml index 91c43da4d..124d04597 100644 --- a/.github/workflows/check-measurements-reproducibility.yml +++ b/.github/workflows/check-measurements-reproducibility.yml @@ -99,9 +99,8 @@ jobs: ts " " < "$attestationVariant"_own-measurements.json # TODO: cache errors and return them later. - diff="$(jd ./"$attestationVariant"_their-measurements.json ./"$attestationVariant"_own-measurements.json)" - if [[ $? -ne 0 ]]; then - errors["$attestationVariant"]="$diff" + if ! jd ./"$attestationVariant"_their-measurements.json ./"$attestationVariant"_own-measurements.json; then + errors["$attestationVariant"]="$(!!)" fi done