Update offsite-power-check.sh

This commit is contained in:
2023-11-08 09:14:51 -06:00
parent b9d37cd0df
commit 917d888e11

View File

@@ -150,7 +150,7 @@ LOGROTATE(){
# mv ${PW_LOGFOLDER}/log* ${ARCHIVEFOLDER}/ 2> /dev/null
[ ! -f ${PW_LOGFILE} ] && touch ${PW_LOGFILE}
[ ! -f ${PW_LOGPOWER} ] && touch ${PW_LOGPOWER}
backupstokeep=($(ls -d ${PW_LOGARCHIVE}/* 2> /dev/null | sort | tail -12))
backupstokeep=$(ls -d ${PW_LOGARCHIVE}/* 2> /dev/null | sort | tail -12)
IFS=$'\n'
read -rd '' -a backupstokeep <<<"${backupstokeep}"
unset IFS