Workaround for OSX not having the realpath command.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
(
|
||||
set -e
|
||||
basedir=$(realpath "$1")
|
||||
basedir="$(cd "$1" && pwd -P)"
|
||||
workdir="$basedir/work"
|
||||
mcver=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4)
|
||||
paperjar="../../Paper-Server/target/paper-$mcver.jar"
|
||||
@@ -18,5 +18,5 @@ echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo "Build success!"
|
||||
echo "Copied final jar to "$(realpath "$basedir/paperclip.jar")
|
||||
echo "Copied final jar to $(cd "$basedir" && pwd -P)/paperclip.jar"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user