From 78dc176e5cace1b48f51279c51df880dfcedd4fb Mon Sep 17 00:00:00 2001 From: Aikar Date: Fri, 31 Aug 2018 23:59:03 -0400 Subject: [PATCH] fix bug in needs redecomp deleting wrong directory --- scripts/decompile.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/decompile.sh b/scripts/decompile.sh index 86d60a679..8a9850e6d 100755 --- a/scripts/decompile.sh +++ b/scripts/decompile.sh @@ -21,7 +21,11 @@ forgeflowercachefile="$decompiledir/forgeflowercache" forgeflowercachevalue="$forgeflowerurl - $forgeflowerversion - $forgefloweroptions"; classdir="$decompiledir/classes" + +# prep folders mkdir -p "$workdir/ForgeFlower" +mkdir -p "$spigotdecompiledir" +mkdir -p "$forgedecompiledir" echo "Extracting NMS classes..." if [ ! -d "$classdir" ]; then @@ -37,10 +41,6 @@ if [ ! -d "$classdir" ]; then set -e fi -# prep folders -mkdir -p "$spigotdecompiledir" -mkdir -p "$forgedecompiledir" - needsDecomp=0 if [ ! -f "$forgeflowercachefile" ]; then needsDecomp=1 @@ -49,7 +49,7 @@ elif [ "$(cat ${forgeflowercachefile})" != "$forgeflowercachevalue" ]; then fi if [ "$needsDecomp" == "1" ]; then # our local cache is now invalidated, we can update forgeflower to get better deobfuscation - rm -rf "$forgedecompiledir" + rm -rf "$forgedecompiledir/net" fi # Forge (for Paper mc-dev imports, and dev src folders for unimported files)