Merge pull request #241 from JanikBot/patch-2

Added warning if user doesn't use the server version of the modpack
This commit is contained in:
Geoff Bourne
2018-08-18 15:39:23 -05:00
committed by GitHub

View File

@@ -68,6 +68,11 @@ if [[ $startScriptCount = 0 ]]; then
unzip -o ${srv_modpack} -d ${FTB_BASE_DIR} | awk '{printf "."} END {print ""}'
fi
if [[ $(find ${FTB_BASE_DIR} -name ServerStart.sh |wc -l) = 0 ]]; then
echo "Please make sure you are using the server version of the FTB modpack!"
exit 2
fi
export FTB_SERVER_START=./ServerStart.sh
export FTB_DIR=$(dirname $(find ${FTB_DIR} -name ServerStart.sh))
chmod a+x ${FTB_DIR}/${FTB_SERVER_START}