Auto exit if general install fails

This commit is contained in:
Price Hiller 2021-12-25 23:50:50 -06:00
parent 57cea46d5a
commit a5f4ee1bfb

View File

@ -13,7 +13,7 @@ SDTD_BIN_DIR="${SDTD_USER_HOME}/.bin"
git clone --recurse-submodules https://gitlab.orion-technologies.io/game-servers/7-days-to-die.git "${GIT_DIR}"
# Run general installation from the general submodule
sudo /bin/bash "${GENERAL_MODULE_PATH}/install.bash" "${GENERAL_MODULE_PATH}"
sudo /bin/bash "${GENERAL_MODULE_PATH}/install.bash" "${GENERAL_MODULE_PATH}" || exit
# Create the user
if [[ ! -d "${SDTD_USER_HOME}" ]]; then