From bfd96ec278bb138b6a55e71652961f2d05090e6b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 29 Oct 2014 17:33:01 +0100 Subject: complain earlier, fail less --- bin/reproducible_housekeeping.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/reproducible_housekeeping.sh b/bin/reproducible_housekeeping.sh index 3086040a..b2d0e982 100755 --- a/bin/reproducible_housekeeping.sh +++ b/bin/reproducible_housekeeping.sh @@ -34,7 +34,7 @@ if [ ! -f reproducible_$DATE.db.xz ] ; then fi # find and warn about old temp directories -OLDSTUFF=$(find $REP_RESULTS -type d -name "tmp.*" -mtime +7 -exec ls -lad {} \;) +OLDSTUFF=$(find $REP_RESULTS -type d -name "tmp.*" -mtime +1 -exec ls -lad {} \;) if [ ! -z "$OLDSTUFF" ] ; then echo echo "Warning: old temp directories found in $REP_RESULTS" @@ -45,7 +45,7 @@ if [ ! -z "$OLDSTUFF" ] ; then fi # find and warn about pbuild leftovers -OLDSTUFF=$(find /var/cache/pbuilder/result/ -mtime +7 -exec ls -lad {} \;) +OLDSTUFF=$(find /var/cache/pbuilder/result/ -mtime +0 -exec ls -lad {} \;) if [ ! -z "$OLDSTUFF" ] ; then echo echo "Warning: old files or directories found in /var/cache/pbuilder/result/" @@ -61,7 +61,7 @@ RESULT=$(mktemp) ps axo pid,user,size,pcpu,cmd > $HAYSTACK 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 + grep ^$ZOMBIE $HAYSTACK | grep -v faked-sysv >> $RESULT 2> /dev/null || true done if [ -s $RESULT ] ; then echo -- cgit v1.2.3-54-g00ecf