From 3348010004975891ecd6e5efcdff7eed6daf3674 Mon Sep 17 00:00:00 2001 From: Ross Reicks Date: Thu, 19 Jan 2023 21:44:49 -0600 Subject: [PATCH] fix: parliament now supports piping individual files via stdin --- iam-lint | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iam-lint b/iam-lint index 734bb8b..738ab16 100755 --- a/iam-lint +++ b/iam-lint @@ -65,7 +65,8 @@ while read -r file; do echo -n "==> Linting $file... " - OUTPUT="$(parliament "${PARLIAMENT_ARGS[@]}" --file "${file}" 2>&1 || true)" + OUTPUT=`cat "${file}" | parliament "${PARLIAMENT_ARGS[@]}" 2>&1 || true` + if [[ -n "${OUTPUT}" ]]; then red "FAILED" echo "${OUTPUT}"