Rename work dir

This commit is contained in:
Mariell Hoversholm
2021-03-16 18:30:17 +01:00
parent 2d847f7478
commit 8e7a9cdae4
7 changed files with 23 additions and 18 deletions

View File

@@ -97,9 +97,10 @@ echo "Importing MC Dev"
applyPatch "work/Spigot/Spigot-API" Paper-API HEAD &&
applyPatch "work/Spigot/Spigot-Server" Paper-Server HEAD
cd "$basedir"
revision="$(cat "$basedir"/revision.txt | tr -d '\n')"
# if we have previously ran ./paper mcdev, update it
if [ -d "$workdir/Minecraft/$minecraftversion/src" ]; then
if [ -d "$workdir/Minecraft/$minecraftversion-$revision/src" ]; then
./scripts/makemcdevsrc.sh "$basedir"
fi
) || (