From 2aafc114e02cbbf69fe652f70d98ac1e69d53ff0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 28 Mar 2023 11:12:18 -0300 Subject: report.sh: Use "find | while read" over "for `find`" --- src/infrastructure/scripts/report.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/infrastructure/scripts/report.sh') diff --git a/src/infrastructure/scripts/report.sh b/src/infrastructure/scripts/report.sh index 11ddc42..acb6b7f 100755 --- a/src/infrastructure/scripts/report.sh +++ b/src/infrastructure/scripts/report.sh @@ -193,7 +193,7 @@ done PASS='✅' # ✅ WARN='🐌' # 🐌 FAIL='❌' # ❌ - for f in $(find data/ -type f | LANG=C.UTF-8 sort -r); do + find data/ -type f | LANG=C.UTF-8 sort -r | while read -r f; do STATUS="$( grep '^status ' "$f" | cut -d' ' -f2- | esc)" SHA="$( grep '^sha ' "$f" | cut -d' ' -f2- | esc)" FILENAME="$(grep '^filename ' "$f" | cut -d' ' -f2- | esc)" -- cgit v1.2.3