Fix Namalsk map integration, as it has two sets of mpmissions directories.

This commit is contained in:
Daniel Ceregatti 2024-06-22 13:11:24 -07:00
parent ed2b9499a2
commit dc36e1817c
2 changed files with 9 additions and 5 deletions

View file

@ -32,6 +32,7 @@ then
else else
git clone "${REPO}" git clone "${REPO}"
fi fi
rm -rf "${SERVER_FILES}/mpmissions/${MPDIR}" rm -rf ${SERVER_FILES}/mpmissions/${MPDIR:?}
cp -a "${DIR}/${MPDIR}" "${SERVER_FILES}/mpmissions" pushd "${DIR}" > /dev/null
find . -name "${MPDIR}" -exec cp -a {} "${SERVER_FILES}/mpmissions" \;
fi fi

View file

@ -2,7 +2,10 @@
set -eE set -eE
# There are two sets of mpmission files for Namalsk, one for the regular version and one for the hardcore version.
# This is why there is a wildcard in MPDIR.
MAP="Namalsk" MAP="Namalsk"
DIR="Namalsk-Server/Mission Files" DIR="Namalsk-Server"
REPO="https://github.com/SumrakDZN/Namalsk-Server.git" REPO="https://github.com/SumrakDZN/${DIR}.git"
MPDIR="hardcore.namalsk" MPDIR="*.namalsk"