[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] fix quoting
Holger Levsen (@holger)
gitlab at salsa.debian.org
Mon Jun 21 23:19:53 BST 2021
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
657a2198 by Holger Levsen at 2021-06-22T00:19:41+02:00
fix quoting
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_maintenance.sh
Changes:
=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -369,7 +369,7 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
if [ ! -z "$OLDSTUFF" ] ; then
echo
echo "Old logfiles cleaned in $dir"
- echo -n "$OLDSTUFF" | sed 's#$dir#./#g'
+ echo -n "$OLDSTUFF" | sed "s#$dir#./#g"
# we make sure to actually only delete console.log.gz older than a day
# other stuff we only delete after two days (in case a build is running more than 24h...)
find $dir -maxdepth 2 -regex '.*/[0-9]+' -type d -mtime +0 -name console.log.gz -exec rm -rf --one-file-system {} \; || true
@@ -419,7 +419,7 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
if [ ! -z "$OLDSTUFF" ]; then
echo
echo "data in $dir older than 2 days found, which will be deleted:"
- echo "$OLDSTUFF" | sed 's#$dir#./#g'
+ echo "$OLDSTUFF" | sed "s#$dir#./#g"
echo
find "$dir" -name "jenkins-reproducible-*-diffoscope-*" -mindepth 1 -maxdepth 1 -type $FILETYPE -mtime +1 -exec sudo $RM -v {} \; || true
@@ -427,7 +427,7 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
if [ ! -z "$OLDSTUFF" ]; then
echo
echo "Warning: Tried, but failed to delete these in $dir:"
- echo "$OLDSTUFF" | sed 's#$dir#./#g'
+ echo "$OLDSTUFF" | sed "s#$dir#./#g"
echo "Manual cleanup needed."
fi
echo
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/657a219858ec4d9ae53f7869af4a57ecbd3f4fdd
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/657a219858ec4d9ae53f7869af4a57ecbd3f4fdd
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/qa-jenkins-scm/attachments/20210621/3529fe42/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list