deprecate parallel mode

This commit is contained in:
tschettervictor
2025-08-03 13:32:59 -06:00
parent 2e49abc062
commit a190099450
21 changed files with 699 additions and 221 deletions

View File

@@ -84,10 +84,7 @@ bastille_root_check
TARGET="${1}"
shift 1
# Use mktemp to store exit codes
export TMP_BASTILLE_EXIT_CODE="$(mktemp)"
echo 0 > "${TMP_BASTILLE_EXIT_CODE}"
ERRORS=0
set_target "${TARGET}"
@@ -110,9 +107,15 @@ for _jail in ${JAILS}; do
else
jexec -l -U root "${_jail}" "$@"
fi
bastille_check_exit_code "${_jail}" "$?"
if [ "$?" -ne 0 ]; then
ERRORS=$((ERRORS + 1))
fi
done
bastille_return_exit_code
if [ "${ERRORS}" -ne 0 ]; then
error_exit "[ERROR]: Command failed on ${ERRORS} jails."
fi
echo