diff --git a/git_commit_push.sh b/git_commit_push.sh index 240e638..98fb3df 100755 --- a/git_commit_push.sh +++ b/git_commit_push.sh @@ -1,6 +1,24 @@ #!/bin/bash -cd /Users/beamer/Documents/ProPresenter-LIVE -/usr/bin/git add --all . -/usr/bin/git commit -m "boot: inital commit" -/usr/bin/git push origin +function shutdown() +{ + cd /Users/beamer/Documents/ProPresenter-LIVE + /usr/bin/git add --all . + /usr/bin/git commit -m "boot: inital commit" + /usr/bin/git push origin + + exit 0 +} + +function startup() +{ + + + tail -f /dev/null & + wait $! +} + +trap shutdown SIGTERM +trap shutdown SIGKILL + +startup; \ No newline at end of file