mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't try to remove directories unless we've emptied them first
Submitted by: NIIMI Satoshi <sa2c@and.or.jp> PR: 28355 MFC after: 1 week
This commit is contained in:
parent
35904a3be8
commit
cce7f73d72
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ case "$daily_clean_tmps_enable" in
|
|||
do
|
||||
[ ."${dir#/}" != ."$dir" -a -d $dir ] && cd $dir && {
|
||||
find -d . -type f $args -delete $print
|
||||
find -d . ! -name . -type d -mtime \
|
||||
find -d . ! -name . -type d -empty -mtime \
|
||||
+$daily_clean_tmps_days -delete $print
|
||||
} | sed "s,^\\., $dir,"
|
||||
done | tee /dev/stderr | wc -l)
|
||||
|
|
|
|||
Loading…
Reference in a new issue