Skip to content

Commit 25712f6

Browse files
committed
Updates - Automated Commit Message
1 parent 2d30254 commit 25712f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

commit.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/bin/bash
2+
COMMIT_MESSAGE="$1"
23

3-
git add -A && git commit -m "Updates" && git push -u origin master
4+
if [[ -z "${COMMIT_MESSAGE}" ]]; then
5+
COMMIT_MESSAGE="Updates - Automated Commit Message"
6+
fi
7+
8+
git add -A && git commit -m "${COMMIT_MESSAGE}" && git push -u origin master

0 commit comments

Comments
 (0)