From 06bd50a6f779725776fe847ea1301c337dccac59 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Mon, 22 Mar 2021 14:25:07 -0400 Subject: [PATCH] less wrong way to propagate errors maybe --- ci-tools/vulnerability-scan | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci-tools/vulnerability-scan b/ci-tools/vulnerability-scan index a2b2d6c9..04058db1 100755 --- a/ci-tools/vulnerability-scan +++ b/ci-tools/vulnerability-scan @@ -34,6 +34,6 @@ fi # vulnix exits with an error status if there are vulnerabilities. We told # GitLab to allow this by setting `allow_failure` to true in the GitLab CI # config. -set +eo pipefail -status=$(nix-shell -p vulnix --run 'vulnix ./scan-target/' | tee "$OUTPUT") -exit $status +set +e +nix-shell -p vulnix --run 'vulnix ./scan-target/' | tee "$OUTPUT" +exit $? -- GitLab