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 )