Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 7a2afc8

Browse files
committed
Add support for empty message in bump-spongecommon.
1 parent 2987127 commit 7a2afc8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

bump-spongecommon

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
#!/bin/sh
2+
MESSAGE=
23
if [ $# = 0 ]
34
then
4-
echo Please specify the commit message. "Bump SpongeCommon" is inserted at the start.
5-
exit 1
5+
MESSAGE="Bump SpongeCommon."
6+
else
7+
MESSAGE="Bump SpongeCommon $*"
68
fi
79
old_dir=`pwd`
810
cd `dirname $0`
911
cd SpongeForge
1012
git add SpongeCommon
11-
git commit -m "Bump SpongeCommon $*"
13+
git commit -m "$MESSAGE"
1214
git push
1315
cd ../SpongeVanilla
1416
git add SpongeCommon
15-
git commit -m "Bump SpongeCommon $*"
17+
git commit -m "$MESSAGE"
1618
git push
1719
cd $old_dir

0 commit comments

Comments
 (0)