aboutsummaryrefslogtreecommitdiff
path: root/src/infrastructure/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-28 11:12:18 -0300
committerEuAndreh <eu@euandre.org>2023-03-28 11:12:18 -0300
commit2aafc114e02cbbf69fe652f70d98ac1e69d53ff0 (patch)
treec3fab0977f26a0417b398e8dcb136b10764af26c /src/infrastructure/scripts
parentcheck.sh: Add btrfs-scrub(8) and btrfs-check(8) to routine (diff)
downloadtoph-2aafc114e02cbbf69fe652f70d98ac1e69d53ff0.tar.gz
toph-2aafc114e02cbbf69fe652f70d98ac1e69d53ff0.tar.xz
report.sh: Use "find | while read" over "for `find`"
Diffstat (limited to 'src/infrastructure/scripts')
-rwxr-xr-xsrc/infrastructure/scripts/report.sh2
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='&#x2705;' # ✅
WARN='&#x1F40C;' # 🐌
FAIL='&#x274C;' # ❌
- 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)"