summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-04 15:33:16 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-04 15:33:16 +0200
commitc7a1e1bc6db82aa6fafda0b6a84986b2ebee5285 (patch)
tree38f6360e58a19cc090149bf25086e146d6246996
parentd7a76772d48bd523c8d2ba62f331f84423d9a2e9 (diff)
downloadjenkins.debian.net-c7a1e1bc6db82aa6fafda0b6a84986b2ebee5285.tar.xz
no lockfile is also fine
-rwxr-xr-xbin/reproducible_maintenance.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 655e2e5f..8ccf4459 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -222,7 +222,7 @@ fi
# remove lockfiles older than 2 days
-LOCKFILES=$(find /tmp/reproducible-lockfile-* -maxdepth 1 -type f -mtime +2 -exec ls -lad {} \; || true)
+LOCKFILES=$(find /tmp/reproducible-lockfile-* -maxdepth 1 -type f -mtime +2 -exec ls -lad {} \; 2>/dev/null|| true)
if [ ! -z "$LOCKFILES" ] ; then
echo
echo "Removed old lockfiles:"