From 493af046aeed7d1238fff98f8433eef6ae26a652 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Wed, 16 Sep 2026 21:04:40 +0200 Subject: [PATCH] Avoid nonportable sorting in report validation batch --- tools/validate-all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/validate-all.sh b/tools/validate-all.sh index 28651c6..65db7db 100755 --- a/tools/validate-all.sh +++ b/tools/validate-all.sh @@ -4,6 +4,6 @@ root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P) input_dir=${1:-}; [[ -n "$input_dir" && $# -eq 1 ]]||{ echo "Usage: $0 INPUT_DIR" >&2; exit 2; } count=0 while IFS= read -r -d '' input; do "$root/tools/validate.sh" "$input"; ((count+=1)); done \ - < <(find "$input_dir" -type f \( -name '*.json' -o -name '*.yaml' -o -name '*.yml' \) -print0 | sort -z) + < <(find "$input_dir" -type f \( -name '*.json' -o -name '*.yaml' -o -name '*.yml' \) -print0) ((count > 0))||{ echo "$input_dir: no YAML or JSON reports found" >&2; exit 1; } echo "Validated $count reports"