summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrikant Patnaik2015-02-23 19:48:37 +0530
committerSrikant Patnaik2015-02-23 19:48:37 +0530
commit28354977701f7243ba8329e61baffbf24f58493c (patch)
tree485a0b5e89533efbb913e3b35318dc5739163f9a
parent7a1a0a48a9a413aa44efbd436985e58c4a2e3d3a (diff)
downloadFOSSEE-netbook-patcher-28354977701f7243ba8329e61baffbf24f58493c.tar.gz
FOSSEE-netbook-patcher-28354977701f7243ba8329e61baffbf24f58493c.tar.bz2
FOSSEE-netbook-patcher-28354977701f7243ba8329e61baffbf24f58493c.zip
a daily cronjob for update-script
-rwxr-xr-xupdate-tool/cronjob-for-check-updates.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/update-tool/cronjob-for-check-updates.sh b/update-tool/cronjob-for-check-updates.sh
new file mode 100755
index 0000000..ca28b2e
--- /dev/null
+++ b/update-tool/cronjob-for-check-updates.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# This script will be called by cronjob every hour
+
+
+DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+
+cd $DIR
+
+[ $(git fetch --tags --dry-run 2>&1 | wc -l) -ge 1 ] && \
+notify-send "Updates available: menu -> FOSSEE-Tools -> FOSSEE-updates"
+
+exit 0