From 39b081d58341d84dd29fef836b9464fc1db750a5 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Tue, 8 Oct 2024 10:13:28 +1100 Subject: [PATCH] chore(ci): ensure "just lint-scripts" exits with a non-zero status (#3026) Unfortunately Just doesn't enable the "pipefail" option, so we need to do it explicitly. --- Justfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 7553817d8b..13ae7de4a0 100644 --- a/Justfile +++ b/Justfile @@ -190,7 +190,9 @@ lint-backend: @lint-commit-or-rollback ./backend/... lint-scripts: - @shellcheck -f gcc -e SC2016 $(find scripts -type f -not -path scripts/tests) | to-annotation + #!/bin/bash + set -euo pipefail + shellcheck -f gcc -e SC2016 $(find scripts -type f -not -path scripts/tests) | to-annotation # Run live docs server docs: