#!/bin/sh UPDATES="$(checkupdates | wc -l)" if [ "0" != "$UPDATES" ]; then echo " $UPDATES" sudo checkupdates -d >/dev/null 2>&1 & fi