Update temp.inc.sh

This commit is contained in:
2024-01-30 19:30:37 -06:00
parent 16ff87be52
commit ebf6e29420

View File

@@ -413,12 +413,13 @@ CHECKTEMP_SERVICE(){
s_count=0; completed=false; scanstart=$(date +%s)
until [ "${completed}" == "true" ]; do
for sensor in ${PW_TMPFOLDER}/ztemprun.*.done; do
if [ "$(grep -oP '(?<=ztemprun.).*?(?=.done)' <<< "${sensor}")" != "*" ]; then
tsensor=$(grep -oP '(?<=ztemprun.).*?(?=.done)' <<< "${sensor}")
if [ "${tsensor}" != "*" ]; then
rm -f ${sensor}
((s_count++))
echo -en "HERE: ${sensor} = "
[ -f ${PW_TMPFOLDER}/.lastfancheck/${sensor}* ] && echo yes || echo no
[ -f ${PW_TMPFOLDER}/.lastfancheck/${sensor}* ] && rm -f ${PW_TMPFOLDER}/.lastfancheck/${sensor}*
echo -en "HERE: ${tsensor} = "
[ -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}* ] && echo yes || echo no
[ -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}* ] && rm -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}*
fi
done