Abort properly on error for build script
This commit is contained in:
parent
926ba9a3bb
commit
92f8da4b50
3 changed files with 22 additions and 7 deletions
6
init.sh
6
init.sh
|
@ -30,6 +30,6 @@ do
|
|||
"$patch" -s -d src/main/java/ "net/minecraft/server/$file" < "$patchFile"
|
||||
done
|
||||
|
||||
git add src >/dev/null 2>&1
|
||||
git commit -m "CraftBukkit $ $(date)" >/dev/null 2>&1
|
||||
git checkout -f HEAD^ >/dev/null 2>&1
|
||||
git add src >/dev/null 2>&1 || exit 1
|
||||
git commit -m "CraftBukkit $ $(date)" >/dev/null 2>&1 || exit 1
|
||||
git checkout -f HEAD^ >/dev/null 2>&1 || exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue