mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
[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.
This commit is contained in:
parent
314acb5d8f
commit
356b56351e
1 changed files with 3 additions and 2 deletions
|
@ -34,9 +34,10 @@ fi
|
||||||
# set a symlink to current
|
# set a symlink to current
|
||||||
currentlink="$workdir/Minecraft/current"
|
currentlink="$workdir/Minecraft/current"
|
||||||
if ([ ! -e "$currentlink" ] || [ -L "$currentlink" ]) && [ "$windows" == "false" ]; then
|
if ([ ! -e "$currentlink" ] || [ -L "$currentlink" ]) && [ "$windows" == "false" ]; then
|
||||||
|
set +e
|
||||||
echo "Pointing $currentlink to $minecraftversion"
|
echo "Pointing $currentlink to $minecraftversion"
|
||||||
rm -rf "$currentlink"
|
rm -rf "$currentlink" || true
|
||||||
ln -sfn "$minecraftversion" "$currentlink"
|
ln -sfn "$minecraftversion" "$currentlink" || echo "Failed to set current symlink"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue