correct cake usage
This commit is contained in:
@@ -105,8 +105,8 @@ echo 'exit $EC' >> "$JOBFILE"
|
|||||||
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
|
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
|
||||||
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
|
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
|
||||||
then touch "$JOBROOT"/.lastdel
|
then touch "$JOBROOT"/.lastdel
|
||||||
find "$JOBROOT" -maxdepth 2 -mindepth 2 -type f -mtime +20 -delete
|
find "$JOBROOT" -maxdepth 2 -mindepth 2 -type f -mtime +20 -delete 2>/dev/null
|
||||||
find "$JOBROOT" -type d -depth -empty -delete
|
find "$JOBROOT" -type d -depth -empty -delete 2>/dev/null
|
||||||
fi
|
fi
|
||||||
) &
|
) &
|
||||||
|
|
||||||
|
|||||||
@@ -100,8 +100,8 @@ echo 'exit $EC' >> "$JOBFILE"
|
|||||||
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
|
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
|
||||||
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
|
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
|
||||||
then touch "$JOBROOT"/.lastdel
|
then touch "$JOBROOT"/.lastdel
|
||||||
find "$JOBROOT" -maxdepth 2 -mindepth 2 -type f -mtime +20 -delete
|
find "$JOBROOT" -maxdepth 2 -mindepth 2 -type f -mtime +20 -delete 2>/dev/null
|
||||||
find "$JOBROOT" -type d -depth -empty -delete
|
find "$JOBROOT" -type d -depth -empty -delete 2>/dev/null
|
||||||
fi
|
fi
|
||||||
) &
|
) &
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user