Properly forward exit 1 code from the paper root command
This is so the CI server can pick up when applying patches fails, and mark the build as a failure.
This commit is contained in:
@@ -95,4 +95,4 @@ cd "$basedir"
|
||||
echo "Failed to apply Paper Patches"
|
||||
exit 1
|
||||
) || exit 1
|
||||
)
|
||||
) || exit 1
|
||||
|
||||
@@ -12,4 +12,4 @@ gitcmd="git -c commit.gpgsign=false"
|
||||
if [ "$2" == "--jar" ]; then
|
||||
mvn clean install && ./scripts/paperclip.sh "$basedir"
|
||||
fi
|
||||
)
|
||||
) || exit 1
|
||||
|
||||
@@ -19,4 +19,4 @@ echo ""
|
||||
echo ""
|
||||
echo "Build success!"
|
||||
echo "Copied final jar to $(cd "$basedir" && pwd -P)/paperclip.jar"
|
||||
)
|
||||
) || exit 1
|
||||
|
||||
@@ -60,4 +60,4 @@ function savePatches {
|
||||
|
||||
savePatches "$workdir/Spigot/Spigot-API" "Paper-API"
|
||||
savePatches "$workdir/Spigot/Spigot-Server" "Paper-Server"
|
||||
)
|
||||
) || exit 1
|
||||
|
||||
Reference in New Issue
Block a user