Add a patch to make sure we don't recursively copy root around
This commit is contained in:
parent
01d9af75f0
commit
533ceb2c2e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user