Update temp.inc.sh
This commit is contained in:
@@ -413,12 +413,13 @@ CHECKTEMP_SERVICE(){
|
|||||||
s_count=0; completed=false; scanstart=$(date +%s)
|
s_count=0; completed=false; scanstart=$(date +%s)
|
||||||
until [ "${completed}" == "true" ]; do
|
until [ "${completed}" == "true" ]; do
|
||||||
for sensor in ${PW_TMPFOLDER}/ztemprun.*.done; 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}
|
rm -f ${sensor}
|
||||||
((s_count++))
|
((s_count++))
|
||||||
echo -en "HERE: ${sensor} = "
|
echo -en "HERE: ${tsensor} = "
|
||||||
[ -f ${PW_TMPFOLDER}/.lastfancheck/${sensor}* ] && echo yes || echo no
|
[ -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}* ] && echo yes || echo no
|
||||||
[ -f ${PW_TMPFOLDER}/.lastfancheck/${sensor}* ] && rm -f ${PW_TMPFOLDER}/.lastfancheck/${sensor}*
|
[ -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}* ] && rm -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user