add exit code export to pkg,service,sysrc

This commit is contained in:
tschettervictor
2025-06-22 12:12:02 -06:00
parent 7cbcdabb91
commit 2b4599af2f
3 changed files with 12 additions and 0 deletions

View File

@@ -96,6 +96,9 @@ fi
TARGET="${1}"
shift
# Use mktemp to store exit codes
export TMP_BASTILLE_EXIT_CODE="$(mktemp)"
echo 0 > "${TMP_BASTILLE_EXIT_CODE}"
bastille_root_check
set_target "${TARGET}"
@@ -160,5 +163,6 @@ for _jail in ${JAILS}; do
done
wait
echo
bastille_return_exit_code

View File

@@ -82,6 +82,9 @@ fi
TARGET="${1}"
shift
# Use mktemp to store exit codes
export TMP_BASTILLE_EXIT_CODE="$(mktemp)"
echo 0 > "${TMP_BASTILLE_EXIT_CODE}"
bastille_root_check
set_target "${TARGET}"
@@ -111,5 +114,6 @@ for _jail in ${JAILS}; do
done
wait
echo
bastille_return_exit_code

View File

@@ -82,6 +82,9 @@ fi
TARGET="${1}"
shift
# Use mktemp to store exit codes
export TMP_BASTILLE_EXIT_CODE="$(mktemp)"
echo 0 > "${TMP_BASTILLE_EXIT_CODE}"
bastille_root_check
set_target "${TARGET}"
@@ -111,5 +114,6 @@ for _jail in ${JAILS}; do
done
wait
echo
bastille_return_exit_code