Skip to content

Instantly share code, notes, and snippets.

@Mausy5043
Created December 24, 2014 14:35
Show Gist options
  • Save Mausy5043/ef47d9ba70b3b1bd33bb to your computer and use it in GitHub Desktop.
Save Mausy5043/ef47d9ba70b3b1bd33bb to your computer and use it in GitHub Desktop.
#! /bin/bash
minute=$(date "+%M")
if [ $minute -eq "54" ]; then
# Update the git scripts once every hour
cd /home/pi/gitbin
git fetch origin && git reset --hard origin/test && git clean -f -d
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment