Fix unnecessary double update check

This commit is contained in:
Alice Gaudon 2020-02-04 07:37:54 +01:00
parent 05ec42e03b
commit d041457005

View File

@ -4,6 +4,5 @@ UPDATES=$(checkupdates --download)
if [ ! -z "$(echo -en UPDATES | grep \"linux\")" ]; then
echo "Updates available!"
UPDATES=$(checkupdates --download)
echo -e "Updates are available:\n\n$UPDATES" | $(dirname $0)/mail.sh "Updates are available on $(hostname)"
fi