Add a patch to make sure we don't recursively copy root around

This commit is contained in:
Salt 2022-05-26 21:59:36 -05:00
parent 01d9af75f0
commit 533ceb2c2e
1 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,11 @@ if [ -n "$FORGE_PACK_ZIP" ]; then
curl -L "$FORGE_PACK_ZIP" -o pack.zip
unzip pack.zip
directory="$(find . -type d -iname "mods" -execdir pwd \; | sort -n | head -n 1)"
echo "Found modpack directory: $directory"
if [ -z "$directory" ]; then
echo "Unable to find mods directory"
else
echo "Found modpack directory: $directory"
fi
rsync -av --ignore-existing "$directory"/ /minecraft/
popd > /dev/null 2>&1
fi