mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-05 20:24:09 +01:00
add exit code export to pkg,service,sysrc
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user