summaryrefslogtreecommitdiff
path: root/widgets/system_updatestatus/system_update_status.ubuntu
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-11-30 13:30:51 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-11-30 13:30:51 +0100
commit7077eba3c3bf4ff2f641b5873e414ad9c3c541ba (patch)
tree39d7c10226f65df47d9c4ae179bdd4c9d93753fa /widgets/system_updatestatus/system_update_status.ubuntu
parent0e077a1ed82ca9bfb8e6f234f53bbb44400df86a (diff)
downloadskin-flatplus-7077eba3c3bf4ff2f641b5873e414ad9c3c541ba.tar.gz
skin-flatplus-7077eba3c3bf4ff2f641b5873e414ad9c3c541ba.tar.bz2
update widgets folders
Diffstat (limited to 'widgets/system_updatestatus/system_update_status.ubuntu')
-rwxr-xr-xwidgets/system_updatestatus/system_update_status.ubuntu9
1 files changed, 6 insertions, 3 deletions
diff --git a/widgets/system_updatestatus/system_update_status.ubuntu b/widgets/system_updatestatus/system_update_status.ubuntu
index 50bdc037..00972628 100755
--- a/widgets/system_updatestatus/system_update_status.ubuntu
+++ b/widgets/system_updatestatus/system_update_status.ubuntu
@@ -1,8 +1,11 @@
#!/bin/bash
+OUTPUTFLDR="/tmp/skinflatplus/widgets/system_updatestatus"
+mkdir -p ${OUTPUTFLDR}
+
APTCHECK=/usr/lib/update-notifier/apt-check
-rm -f updates security_updates
+rm -f ${OUTPUTFLDR}/updates ${OUTPUTFLDR}/security_updates
if [ ! -f ${APTCHECK} ]
then
@@ -12,6 +15,6 @@ fi
RET=$(${APTCHECK} 2>&1)
# updates
-echo $RET | cut -d";" -f1 > updates
+echo $RET | cut -d";" -f1 > ${OUTPUTFLDR}/updates
# security updates
-echo $RET | cut -d";" -f2 > security_updates
+echo $RET | cut -d";" -f2 > ${OUTPUTFLDR}/security_updates