Update offsite-power-check.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user