Skip to content

Instantly share code, notes, and snippets.

@olistik
Created May 18, 2011 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olistik/978623 to your computer and use it in GitHub Desktop.
Save olistik/978623 to your computer and use it in GitHub Desktop.
poll git repository
#!/bin/bash
while true; do
echo "Checking git repository.."
date -u
git_status=`git pull`
if [[ $git_status != *up-to-date* ]]; then
growlnotify -m "Repository updated" -s
else
echo "no updates"
fi
sleep 30
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment