Abort properly on error for build script
This commit is contained in:
7
build.sh
7
build.sh
@@ -1,6 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
git submodule update --init && ./remap.sh && ./decompile.sh && ./init.sh && ./applyPatches.sh
|
||||
(git submodule update --init && ./remap.sh && ./decompile.sh && ./init.sh && ./applyPatches.sh) || (
|
||||
echo "Failed to build Paper"
|
||||
exit 1
|
||||
) || exit 1
|
||||
if [ "$1" == "--jar" ]; then
|
||||
mvn clean install && ./paperclip.sh
|
||||
(mvn clean install && ./paperclip.sh) || exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user