This commit is contained in:
Liam Waldron 2023-06-07 11:28:40 -04:00
parent c083f3a86e
commit 7b35bb6d9c
2 changed files with 2 additions and 7 deletions

1
tools/commit_msg Normal file
View File

@ -0,0 +1 @@
hi

View File

@ -3,7 +3,6 @@
COMMIT_MSG=${1}
BRANCH=$(git rev-parse --abbrev-ref HEAD)
FILES=("${@}")
printf "Checking if Git repository is present...\n"
@ -13,16 +12,11 @@ if [ "$?" != 0 ]; then
exit 1
fi
if [ "${FILES}" = "" ]; then
printf "No files added.\n"
exit 1
fi
if [ "${COMMIT_MSG}" = "" ]; then
printf "No commit message.\n"
exit 1
fi
git add ${FILES}
git add *
git commit -m ${COMMIT_MSG}
git push origin ${BRANCH}