Last active
January 6, 2017 21:39
-
-
Save raed667/11956bae08bc26e92d1ae383c7046dec 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 | |
timestamp() { | |
date +"%T" | |
} | |
if (( RANDOM % 2 )) | |
then | |
cd /path/to/directory/ | |
timestamp | |
timestamp >> gitClock.txt | |
eval `ssh-agent -s` | |
ssh-add /home/r3d/.ssh/github | |
git add -A | |
git commit -m $(timestamp) | |
git push -u origin master | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment