From 16a89b43d71dcd8e9e470c29f583f82231b7338d Mon Sep 17 00:00:00 2001 From: Aikar Date: Sat, 19 Mar 2016 00:11:14 -0400 Subject: [PATCH] always clean patches --- rebuildPatches.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rebuildPatches.sh b/rebuildPatches.sh index b64b0ec20c..a4efde5a5b 100755 --- a/rebuildPatches.sh +++ b/rebuildPatches.sh @@ -29,14 +29,13 @@ function savePatches { target=$2 echo "Formatting patches for $what..." cd "$basedir/$target" + rm -rf "$basedir/${what}-Patches/" git format-patch --no-stat -N -o "$basedir/${what}-Patches/" upstream/upstream >/dev/null cd "$basedir" git add -A "$basedir/${what}-Patches" cleanupPatches "$basedir/${what}-Patches" echo " Patches saved for $what to $what-Patches/" } -if [ "$1" == "clean" ]; then - rm -rf Spigot-*-Patches -fi + savePatches Spigot-API Paper-API savePatches Spigot-Server Paper-Server