diff options
| author | EuAndreh <eu@euandre.org> | 2023-03-28 11:12:18 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2023-03-28 11:12:18 -0300 |
| commit | 2aafc114e02cbbf69fe652f70d98ac1e69d53ff0 (patch) | |
| tree | c3fab0977f26a0417b398e8dcb136b10764af26c /src | |
| parent | check.sh: Add btrfs-scrub(8) and btrfs-check(8) to routine (diff) | |
| download | toph-2aafc114e02cbbf69fe652f70d98ac1e69d53ff0.tar.gz toph-2aafc114e02cbbf69fe652f70d98ac1e69d53ff0.tar.xz | |
report.sh: Use "find | while read" over "for `find`"
Diffstat (limited to 'src')
| -rwxr-xr-x | src/infrastructure/scripts/report.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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)" |
