fix eobuilder old option
This commit is contained in:
parent
364992864b
commit
bf8de62b44
|
@ -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
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
/usr/local/bin/eobuilder -c old
|
||||
su eobuilder -p -c "/usr/local/bin/eobuilder -c old"
|
||||
|
|
Loading…
Reference in New Issue