Put the entire compile.sh script in a code block for security

This makes sure that sh will error out if the connection is interrupted.
See here: https://www.seancassidy.me/dont-pipe-to-your-shell.html
This commit is contained in:
Benjamin Mintz 2015-12-09 23:12:05 -06:00
parent 2b2e0f3b2c
commit 65c89f052b

View File

@ -1,5 +1,6 @@
#|| goto :windows_detected
{ # put the whole thing in a block so as not to behave weirdly if interrupted
set -e
# Do we already have a repo?
@ -206,3 +207,4 @@ exit 0
echo "This script is not available for Windows yet, sorry."
echo "You can still download the Windows binaries from: http://cuberite.org"
echo "You can also manually compile for Windows. See: https://github.com/cuberite/cuberite"