Fix unnecessary double update check
This commit is contained in:
parent
05ec42e03b
commit
d041457005
@ -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
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user