mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-15 15:15:14 +01:00
This patch allows Paper to be build on FreeBSD using the paper script. FreeBSD also doesn't have md5sum and uses md5, just like OS X. As such I added an extra check for the presence of FreeBSD.
This commit is contained in:
parent
a32ff9fc0b
commit
0c7e011b78
@ -23,11 +23,11 @@ if [ ! -f "$jarpath.jar" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# OS X doesn't have md5sum, just md5 -r
|
# OS X & FreeBSD don't have md5sum, just md5 -r
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [[ "$OSTYPE" == "darwin"* || "$(uname)" == "FreeBSD" ]]; then
|
||||||
shopt -s expand_aliases
|
shopt -s expand_aliases
|
||||||
alias md5sum='md5 -r'
|
alias md5sum='md5 -r'
|
||||||
echo "Using an alias for md5sum on macOS"
|
echo "Using an alias for md5sum on macOS and/or FreeBSD"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
checksum=$(md5sum "$jarpath.jar" | cut -d ' ' -f 1)
|
checksum=$(md5sum "$jarpath.jar" | cut -d ' ' -f 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user