From 0ade5595ada580e9a399c07e56128d08816c488d Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 23 Aug 2018 21:50:36 -0400 Subject: [PATCH] [CI-SKIP] Ensure symlink process never fails build not sure if this is source of #1365, but doesn't hurt to make this a non fatal error if the symlink command fails. --- scripts/decompile.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/decompile.sh b/scripts/decompile.sh index 2018259c37..032abdb704 100755 --- a/scripts/decompile.sh +++ b/scripts/decompile.sh @@ -34,9 +34,10 @@ fi # set a symlink to current currentlink="$workdir/Minecraft/current" if ([ ! -e "$currentlink" ] || [ -L "$currentlink" ]) && [ "$windows" == "false" ]; then + set +e echo "Pointing $currentlink to $minecraftversion" - rm -rf "$currentlink" - ln -sfn "$minecraftversion" "$currentlink" + rm -rf "$currentlink" || true + ln -sfn "$minecraftversion" "$currentlink" || echo "Failed to set current symlink" fi )