1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-16 18:31:53 +01:00

Merge pull request from ShelLuser/master

Allowing Paper to be build on FreeBSD
This commit is contained in:
Zach Brown 2018-02-22 10:47:58 -05:00
commit 3d54d86de2

View file

@ -23,11 +23,11 @@ if [ ! -f "$jarpath.jar" ]; then
fi
fi
# OS X doesn't have md5sum, just md5 -r
if [[ "$OSTYPE" == "darwin"* ]]; then
# OS X & FreeBSD don't have md5sum, just md5 -r
if [[ "$OSTYPE" == "darwin"* || "$(uname)" == "FreeBSD" ]]; then
shopt -s expand_aliases
alias md5sum='md5 -r'
echo "Using an alias for md5sum on macOS"
echo "Using an alias for md5sum on macOS and/or FreeBSD"
fi
checksum=$(md5sum "$jarpath.jar" | cut -d ' ' -f 1)