Update powerwall.sh

This commit is contained in:
2023-11-02 10:38:30 -05:00
parent de1206c5cf
commit a70e709fe0

View File

@@ -1245,7 +1245,7 @@ LOGROTATE(){
# sleep 5s
# STARTALL_SERVICES
backupstokeep=(`ls -d ${PW_LOGARCHIVE}/* 2> /dev/null | sort -r | tail -2`)
backupstokeep=(`ls -d ${PW_LOGARCHIVE}/* 2> /dev/null | sort | tail -2`)
for folder in $(ls -d ${PW_LOGARCHIVE}/* | sort -r); do
echo -en "${folder} = "
keep=0