[Piuparts-commits] [piuparts] 01/01: avoid 'echo -e', it's a bashism
Holger Levsen
holger at layer-acht.org
Wed Mar 8 11:43:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 0a2bf85f0ea70829ddcc25ad9b22990a488ac52e
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed Mar 8 12:43:11 2017 +0100
avoid 'echo -e', it's a bashism
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
master-bin/generate_daily_report.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/master-bin/generate_daily_report.in b/master-bin/generate_daily_report.in
index 1a66bbb..29f3e62 100755
--- a/master-bin/generate_daily_report.in
+++ b/master-bin/generate_daily_report.in
@@ -48,7 +48,7 @@ for SCRIPT in detect_network_issues detect_piuparts_issues archive_old_logs repo
FINALDATE=$(date -u +%s)
if [ -s $OUTPUT ] ; then
RUNTIME=$(date -u -d "$FINALDATE seconds - $STARTDATE seconds" +%T)
- ( echo -e "Runtime: $RUNTIME\n" ; cat $OUTPUT ) | mail -s $SCRIPT $LOGNAME
+ ( echo "Runtime: $RUNTIME" ; echo ; cat $OUTPUT ) | mail -s $SCRIPT $LOGNAME
fi
done
rm $OUTPUT
@@ -100,7 +100,7 @@ rm $expire
FINALDATE=$(date -u +%s)
RUNTIME=$(date -u -d "$FINALDATE seconds - $R_STARTDATE seconds" +%T)
-( echo -e "Runtime: $RUNTIME\n" ; cat $DAILYREPORT ) | mail -s piuparts-report $LOGNAME
+( echo "Runtime: $RUNTIME" ; echo ; cat $DAILYREPORT ) | mail -s piuparts-report $LOGNAME
mv $FAILURESTAMP.new $FAILURESTAMP
rm -f $LOCKFILE
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list