From 0c7e011b78eff1637e386aece6f59668a135b312 Mon Sep 17 00:00:00 2001 From: ShelLuser Date: Thu, 22 Feb 2018 11:43:31 +0100 Subject: [PATCH] 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. --- scripts/remap.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/remap.sh b/scripts/remap.sh index 04f48187c..e9817bcb4 100755 --- a/scripts/remap.sh +++ b/scripts/remap.sh @@ -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)