aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-14 10:56:18 -0300
committerEuAndreh <eu@euandre.org>2023-03-14 10:56:18 -0300
commit8f2909f81d3c21c64908a07726f6c41eeae8eae5 (patch)
treed2580f87e5007a95e018d87ba3ffac624d8e08ff
parentgitconfig: Enable "receive.advertisePushOptions" globally (diff)
downloadtoph-8f2909f81d3c21c64908a07726f6c41eeae8eae5.tar.gz
toph-8f2909f81d3c21c64908a07726f6c41eeae8eae5.tar.xz
cronjob.sh: Fix space trimming on report output
Notes
See CI logs with: git notes --ref=refs/notes/ci-logs show 8f2909f81d3c21c64908a07726f6c41eeae8eae5 git notes --ref=refs/notes/ci-data show 8f2909f81d3c21c64908a07726f6c41eeae8eae5 Exit status: 0 Duration: 20
-rwxr-xr-xsrc/infrastructure/scripts/cronjob.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/infrastructure/scripts/cronjob.sh b/src/infrastructure/scripts/cronjob.sh
index 67ba885..ee7c2c4 100755
--- a/src/infrastructure/scripts/cronjob.sh
+++ b/src/infrastructure/scripts/cronjob.sh
@@ -111,6 +111,7 @@ pre() {
# Same as:
# sed -u "s|^|[$CMD]: |"
# but the "-u" option is not POSIX
+ IFS=''
while read -r line; do
printf '[%s]: %s\n' "$CMD" "$line"
done