diff options
author | Srikant Patnaik | 2015-02-23 19:48:37 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-02-23 19:48:37 +0530 |
commit | 28354977701f7243ba8329e61baffbf24f58493c (patch) | |
tree | 485a0b5e89533efbb913e3b35318dc5739163f9a | |
parent | 7a1a0a48a9a413aa44efbd436985e58c4a2e3d3a (diff) | |
download | FOSSEE-netbook-patcher-28354977701f7243ba8329e61baffbf24f58493c.tar.gz FOSSEE-netbook-patcher-28354977701f7243ba8329e61baffbf24f58493c.tar.bz2 FOSSEE-netbook-patcher-28354977701f7243ba8329e61baffbf24f58493c.zip |
a daily cronjob for update-script
-rwxr-xr-x | update-tool/cronjob-for-check-updates.sh | 13 |
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 |