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

View File

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