From 28354977701f7243ba8329e61baffbf24f58493c Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Mon, 23 Feb 2015 19:48:37 +0530 Subject: a daily cronjob for update-script --- update-tool/cronjob-for-check-updates.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 update-tool/cronjob-for-check-updates.sh 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 -- cgit