|
|
@ -81,7 +81,7 @@ if [ $(find "${scriptlogdir}"/ -type f -mtime +${logdays}|wc -l) -ne "0" ]; then |
|
|
|
legacycount=$(find "${legacyserverlogdir}"/ -type f -mtime +${logdays}|wc -l) |
|
|
|
find "${legacyserverlogdir}"/ -mtime +${logdays} -type f -exec rm -f {} \; |
|
|
|
# Remove folder if empty |
|
|
|
if [ ! "$(ls -A "${legacyserverlogdir}"" ]; then |
|
|
|
if [ ! "$(ls -A "${legacyserverlogdir}")" ]; then |
|
|
|
rm -rf "${legacyserverlogdir}" |
|
|
|
fi |
|
|
|
fi |
|
|
|