Use set -e
to handle errors better in the build scripts
This commit is contained in:
parent
7effde04b1
commit
0394633734
11 changed files with 118 additions and 48 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
(
|
||||
set -e
|
||||
basedir=$(realpath "$1")
|
||||
|
||||
(git submodule update --init && ./scripts/remap.sh "$basedir" && ./scripts/decompile.sh "$basedir" && ./scripts/init.sh "$basedir" && ./scripts/applyPatches.sh "$basedir") || (
|
||||
|
@ -7,5 +9,6 @@ basedir=$(realpath "$1")
|
|||
exit 1
|
||||
) || exit 1
|
||||
if [ "$2" == "--jar" ]; then
|
||||
(mvn clean install && ./scripts/paperclip.sh "$basedir") || exit 1
|
||||
mvn clean install && ./scripts/paperclip.sh "$basedir"
|
||||
fi
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue