Last active
December 11, 2015 23:28
-
-
Save hockeybuggy/4676444 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/sh | |
#### GITSHOTS #### | |
# to install place in the hooks directory of a git repo and make it executeable. | |
# requires fswebcam: https://github.com/fsphil/fswebcam | |
gitshotsDir="/home/douglas/media/pictures/.gitshots" | |
logFile="gitshots.log" | |
fswebcam --no-banner $gitshotsDir/`date +'%s'`.jpg -r 1280x720 -S 10 --log $gitshotsDir/$logFile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not backgrounding the process because I currently get a small error and would rather have it print with the commit text rather then a new line...