From 525b95da8590b672bc93214f326bbbd597b7c655 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 19 Jan 2013 19:18:20 +1100 Subject: [PATCH] Don't build if patches fail to apply. --- applyPatches.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applyPatches.sh b/applyPatches.sh index 30dfe4fbe..5fd49c3a0 100755 --- a/applyPatches.sh +++ b/applyPatches.sh @@ -23,10 +23,10 @@ function applyPatch { echo " Something did not apply cleanly to $target." echo " Please review above details and finish the apply then" echo " save the changes with rebuildPatches.sh" + exit 1 else echo " Patches applied cleanly to $target" fi } -applyPatch Bukkit Spigot-API -applyPatch CraftBukkit Spigot +applyPatch Bukkit Spigot-API && applyPatch CraftBukkit Spigot