propresenter/git_commit_push.sh
2025-06-01 12:40:45 +02:00

27 lines
470 B
Bash
Executable file

#!/bin/bash
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()
{
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;