summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-19 16:14:33 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-20 12:42:50 +0200
commit9cedeae29555df4079c65ebe1de2522261073cfc (patch)
tree680fe95befdb5fd92ee69f33e978891f16dd8141 /bin
parent8b7aacfc06d64c68d4958de9bb86f4a443300d30 (diff)
downloadjenkins.debian.net-9cedeae29555df4079c65ebe1de2522261073cfc.tar.xz
reproducible: build: fix sed for the generation of the artifacts page header
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index c266ac77..642d557a 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -72,8 +72,10 @@ save_artifacts() {
local msg="${msg}WARNING: You shouldn't trust packages you downloaded from this host, they can contain malware or the worst of your fears, packaged nicely in debian format.\n"
local msg="${msg}If you are not afraid facing your fears while helping the world by investigating reproducible build issues, you can download the artifacts from the following location: $URL\n"
printf "$msg" | tee -a $BUILDLOG
- echo "$msg" | sed 's#\n#\n<br />#g' > $HEADER
+ echo "<p>" > $HEADER
+ printf "$msg" | sed 's#$#<br />#g' >> $HEADER
echo "Package page: <a href=\"$REPRODUCIBLE_URL/${SUITE}/${ARCH}/${SRCPACKAGE}\">$REPRODUCIBLE_URL/${SUITE}/${ARCH}/${SRCPACKAGE}</a><br />" >> $HEADER
+ echo "</p>" >> $HEADER4
chmod 644 $HEADER
echo | tee -a ${RBUILDLOG}
# irc message