fix
This commit is contained in:
parent
a7ad7f45f5
commit
769d8116d5
@ -1 +1 @@
|
||||
0.8.2.1
|
||||
0.8.2.2
|
||||
|
||||
@ -39,6 +39,7 @@ TempFiles=
|
||||
|
||||
function cleanup {
|
||||
if [ "" != "${TempFiles}" ]; then
|
||||
echo rm -f ${TempFiles}
|
||||
rm -f ${TempFiles}
|
||||
fi
|
||||
}
|
||||
@ -118,11 +119,10 @@ cat ${tmpfile} | ${Sender} ${StatusChannel}
|
||||
Measurements=()
|
||||
tmpfile=$(new_tempfile)
|
||||
space_alert > ${tmpfile}
|
||||
cat ${tmpfile}
|
||||
if [ -s ${tmpfile} ]
|
||||
then
|
||||
(echo "### :card_file_box: STORAGE ALERTS" && cat ${tmpfile}) | ${Sender} ${AlertChannel}
|
||||
else
|
||||
echo File ${tmpfile} is empty
|
||||
echo "No Storage Alerts"
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user