diff options
-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 |