Created
December 24, 2014 14:35
-
-
Save Mausy5043/ef47d9ba70b3b1bd33bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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