diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-03-05 19:16:51 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-05 19:16:51 +0100 |
commit | f4be9ab8da94ce5b8e0c8d1f2e37fbddfa73b571 (patch) | |
tree | d68e75e63c0389fc2f23450e9db1b40881de0f8b | |
parent | 13121ed48bae453ca7cbc7023655c06b0094c347 (diff) | |
download | jenkins.debian.net-f4be9ab8da94ce5b8e0c8d1f2e37fbddfa73b571.tar.xz |
reproducible: simplify matching
-rwxr-xr-x | bin/reproducible_maintainance.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index fbe49aff..9d895745 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -62,9 +62,9 @@ fi OLDSTUFF=$(find /var/cache/pbuilder/result/ -mtime +1 -exec ls -lad {} \;) if [ ! -z "$OLDSTUFF" ] ; then # delete known files - echo "Attempting file detection..." cd /var/cache/pbuilder/result/ - for i in $(find . -maxdepth 1 -mtime +1 -type f) ; do + echo "Attempting file detection..." + for i in $(find . -maxdepth 1 -mtime +1 -type f -basename {} \;) ; do case $i in stderr|stdout) rm -v $i ;; |