epush
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user