9 lines
280 B
Bash
9 lines
280 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
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
|