fix eobuilder old option

This commit is contained in:
Jérôme Schneider 2013-11-12 18:25:03 +01:00
parent 364992864b
commit bf8de62b44
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ while getopts hc:a:d: OPT; do
elif [ "archives" = $OPTARG ]; then
rm -rf $ORIGIN_PATH
elif [ "old" = $OPTARG ]; then
for file in `find $ORIGIN_PATH $BUILDER_RESULT -mtime -60 -print`; do
for file in `find $ORIGIN_PATH $BUILDER_RESULT -type f -mtime -60 -print`; do
rm $file
done
else

View File

@ -1,3 +1,3 @@
#!/bin/sh
/usr/local/bin/eobuilder -c old
su eobuilder -p -c "/usr/local/bin/eobuilder -c old"