correct cake usage

This commit is contained in:
ville rantanen
2014-09-12 13:21:22 +03:00
parent 848a6ea278
commit c1cce77f9f
2 changed files with 4 additions and 4 deletions

View File

@@ -105,8 +105,8 @@ echo 'exit $EC' >> "$JOBFILE"
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
then touch "$JOBROOT"/.lastdel
find "$JOBROOT" -maxdepth 2 -mindepth 2 -type f -mtime +20 -delete
find "$JOBROOT" -type d -depth -empty -delete
find "$JOBROOT" -maxdepth 2 -mindepth 2 -type f -mtime +20 -delete 2>/dev/null
find "$JOBROOT" -type d -depth -empty -delete 2>/dev/null
fi
) &

View File

@@ -100,8 +100,8 @@ echo 'exit $EC' >> "$JOBFILE"
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
then touch "$JOBROOT"/.lastdel
find "$JOBROOT" -maxdepth 2 -mindepth 2 -type f -mtime +20 -delete
find "$JOBROOT" -type d -depth -empty -delete
find "$JOBROOT" -maxdepth 2 -mindepth 2 -type f -mtime +20 -delete 2>/dev/null
find "$JOBROOT" -type d -depth -empty -delete 2>/dev/null
fi
) &