From 59c197b026f30afbc763061ab3b61b61aeaa23c9 Mon Sep 17 00:00:00 2001 From: Beamer Date: Sun, 1 Jun 2025 12:40:05 +0200 Subject: [PATCH] boot: inital commit --- git_commit_push.sh | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) 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