This commit is contained in:
lw-everestlinux committed 2023-06-07 11:28:40 -04:00
1 parent c083f3a86e
commit 7b35bb6d9c
2 files changed
+2 -7

No files matched your search

+1
View File
@@ -0,0 +1 @@
hi
+1 -7
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}