[Piuparts-devel] [Git][debian/piuparts][develop] xz --verbose leads to output on stderr...

Holger Levsen gitlab at salsa.debian.org
Wed Dec 5 13:00:35 GMT 2018


Holger Levsen pushed to branch develop at Debian / piuparts


Commits:
d13b9f56 by Holger Levsen at 2018-12-05T13:00:15Z
xz --verbose leads to output on stderr...

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- master-bin/rotate_master_logs.in


Changes:

=====================================
master-bin/rotate_master_logs.in
=====================================
@@ -45,7 +45,7 @@ for SECTION in $SECTIONS ; do
 	for log in $SECTION/master.*.log
 	do
 		if [ -f "$log" ] && [ "$log" != "$rlog" ]; then
-			xz -v9 $log >> $OUTPUT
+			xz -v9 $log 2>&1 >> $OUTPUT
 		fi
 	done
 done
@@ -55,7 +55,7 @@ if [ -d $LOGDATEDIR ] && [ -n "$(find $LOGDATEDIR -type f ! -name '*.xz')" ] ; t
 	echo >> $OUTPUT
 	echo "Compressing old piuparts.d.o logfiles." >> $OUTPUT
 	echo >> $OUTPUT
-	find $LOGDATEDIR -type f ! -name '*.xz' -exec xz -v9 {} \; >> $OUTPUT
+	find $LOGDATEDIR -type f ! -name '*.xz' -exec xz -v9 {} \; 2>&1 >> $OUTPUT
 fi
 
 if [ -s $OUTPUT ] ; then



View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/d13b9f565593202491cc1da228a0f5f31bdb9dff

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/d13b9f565593202491cc1da228a0f5f31bdb9dff
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20181205/2b3a98aa/attachment.html>


More information about the Piuparts-devel mailing list