Browse Source

Closing parenthesis, works better.

pull/688/head
lrob 9 years ago
parent
commit
9a2bbfd572
  1. 2
      functions/logs.sh

2
functions/logs.sh

@ -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

Loading…
Cancel
Save