mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Basic OS X compatibility: It works
This commit is contained in:
parent
af07aa4f07
commit
b594537ffe
1 changed files with 7 additions and 0 deletions
7
remap.sh
7
remap.sh
|
@ -21,6 +21,13 @@ if [ ! -f "$jarpath.jar" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# OS X doesn't have md5sum, just md5 -r
|
||||||
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
alias md5sum='md5 -r'
|
||||||
|
echo "Using an alias for md5sum on OS X"
|
||||||
|
fi
|
||||||
|
|
||||||
checksum=$(md5sum "$jarpath.jar" | cut -d ' ' -f 1)
|
checksum=$(md5sum "$jarpath.jar" | cut -d ' ' -f 1)
|
||||||
if [ "$checksum" != "$minecrafthash" ]; then
|
if [ "$checksum" != "$minecrafthash" ]; then
|
||||||
echo "The MD5 checksum of the downloaded server jar does not match the BuildData hash."
|
echo "The MD5 checksum of the downloaded server jar does not match the BuildData hash."
|
||||||
|
|
Loading…
Reference in a new issue