propresenter/git_commit_push.sh
2025-08-17 12:01:10 +02:00

28 lines
469 B
Bash
Executable file

#!/bin/bash
function shutdown()
{
cd /Users/beamer/Documents/ProPresenter-LIVE
/usr/bin/git add --all .
/usr/bin/git commit -m "shutdown: commit"
/usr/bin/git push origin
exit 0
}
function startup()
{
cd /Users/beamer/Documents/ProPresenter-LIVE
/usr/bin/git add --all .
/usr/bin/git commit -m "boot: inital commit"
/usr/bin/git push origin
tail -f /dev/null &
wait $!
}
trap shutdown SIGTERM
trap shutdown SIGKILL
startup;