summaryrefslogtreecommitdiff
path: root/widgets/system_updatestatus/system_update_status.ubuntu
blob: 50bdc03713bd5089a72cd9834ad3b02aca8aabfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

APTCHECK=/usr/lib/update-notifier/apt-check

rm -f updates security_updates

if [ ! -f ${APTCHECK} ]
then
    exit
fi

RET=$(${APTCHECK} 2>&1)

# updates
echo $RET | cut -d";" -f1 > updates
# security updates
echo $RET | cut -d";" -f2 > security_updates