Add support for the mpmissions files being in a github subdirectory.

This commit is contained in:
Daniel Ceregatti 2025-08-18 09:28:23 -06:00
parent dd1be5e89f
commit 247612f32d
2 changed files with 6 additions and 1 deletions

View file

@ -34,5 +34,9 @@ then
fi fi
rm -rf ${SERVER_FILES}/mpmissions/${MPDIR:?} rm -rf ${SERVER_FILES}/mpmissions/${MPDIR:?}
pushd "${DIR}" > /dev/null pushd "${DIR}" > /dev/null
find . -name "${MPDIR}" -exec cp -a {} "${SERVER_FILES}/mpmissions" \; if [[ ${SUBDIR} = "" ]]
then
SUBDIR="."
fi
find ${SUBDIR} -name "${MPDIR}" -exec cp -a {} "${SERVER_FILES}/mpmissions" \;
fi fi

View file

@ -4,5 +4,6 @@ set -eE
MAP="DeerIsle" MAP="DeerIsle"
DIR="Deerisle-Stable" DIR="Deerisle-Stable"
SUBDIR="V5.9"
REPO="https://github.com/johnmclane666/${DIR}.git" REPO="https://github.com/johnmclane666/${DIR}.git"
MPDIR="empty.deerisle" MPDIR="empty.deerisle"