only set _last_jail once

This commit is contained in:
tschettervictor
2025-04-29 20:53:27 -06:00
parent feaf8c792b
commit 7974eb7429
16 changed files with 16 additions and 20 deletions

View File

@@ -100,6 +100,7 @@ TARGET="${1}"
bastille_root_check
set_target "${TARGET}"
_last_jail="$(echo ${JAILS} | awk '{print $NF}')"
for _jail in ${JAILS}; do
@@ -189,7 +190,6 @@ for _jail in ${JAILS}; do
sleep "${DELAY_TIME}"
# Print blank line on last jail
_last_jail="$(echo ${JAILS} | awk '{print $NF}')"
[ "${_jail}" = "${_last_jail}" ] && echo ""
done