summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-29 11:28:02 +0100
committerHolger Levsen <holger@layer-acht.org>2014-10-29 11:28:02 +0100
commitcf769d7eef56c57c0099b94c5ece4669b7fb9e68 (patch)
treeb08b09ad36ef91fb4450b0f1762b63262148ea7c /bin
parent4d72f3aa8e9c840b54e51db71c72a59b4e35c9fe (diff)
downloadjenkins.debian.net-cf769d7eef56c57c0099b94c5ece4669b7fb9e68.tar.xz
reproducible: do housekeeping less errorsome
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_housekeeping.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_housekeeping.sh b/bin/reproducible_housekeeping.sh
index 736dfb36..7908909f 100755
--- a/bin/reproducible_housekeeping.sh
+++ b/bin/reproducible_housekeeping.sh
@@ -59,7 +59,7 @@ fi
HAYSTACK=$(mktemp)
RESULT=$(mktemp)
ps axo pid,user,size,pcpu,cmd > $HAYSTACK
-for ZOMBIE in $(pgrep -u 1234 -P 1) ; do
+for ZOMBIE in $(pgrep -u 1234 -P 1 || true) ; do
# faked-sysv comes and goes...
grep ^$ZOMBIE $HAYSTACK | grep -v faked-sysv >> $RESULT 2> /dev/null
done
@@ -83,7 +83,7 @@ QUERY="
ORDER BY date_scheduled
"
PACKAGES=$(mktemp)
-sqlite3 -init $INIT ${PACKAGES_DB} "$QUERY" > $PACKAGES
+sqlite3 -init $INIT ${PACKAGES_DB} "$QUERY" > $PACKAGES || echo "Warning: SQL query '$QUERY' failed."
if [ -s $PACKAGES ] ; then
echo
echo "Warning: packages found where the build was started more than 24h ago:"