Merge pull request #1016 from ShelLuser/master

Allowing Paper to be build on FreeBSD
This commit is contained in:
Zach 2018-02-22 10:47:58 -05:00 committed by GitHub
commit 24cdac9a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

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)