aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-14 10:55:40 -0300
committerEuAndreh <eu@euandre.org>2023-03-14 10:55:40 -0300
commit3aeda8102b8071382075189822d433f4c931e4af (patch)
tree111185db470bdbd3d4594aabd90acd7d69ef3f3b
parentetc/git/config: Use tabs for indentation (diff)
downloaddotfiles-3aeda8102b8071382075189822d433f4c931e4af.tar.gz
dotfiles-3aeda8102b8071382075189822d433f4c931e4af.tar.xz
etc/sh/cronjob.sh: Fix space trimming on report output
-rwxr-xr-xetc/sh/cronjob.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/sh/cronjob.sh b/etc/sh/cronjob.sh
index 5a2eb70..e145012 100755
--- a/etc/sh/cronjob.sh
+++ b/etc/sh/cronjob.sh
@@ -83,6 +83,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