Compare commits

..

2 Commits

Author SHA1 Message Date
oleg 769d8116d5 fix 2024-06-13 18:17:13 -04:00
oleg a7ad7f45f5 fix 2024-06-13 18:13:27 -04:00
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
0.8.2
0.8.2.2
+3 -2
View File
@@ -39,6 +39,7 @@ TempFiles=
function cleanup {
if [ "" != "${TempFiles}" ]; then
echo rm -f ${TempFiles}
rm -f ${TempFiles}
fi
}
@@ -48,6 +49,7 @@ trap cleanup EXIT
function new_tempfile {
tmpfile=$(mktemp)
TempFiles="${TempFiles} ${tmpfile}"
echo ${tmpfile}
}
function space_alert() {
@@ -117,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