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

@@ -91,6 +91,7 @@ shift
bastille_root_check
set_target "${TARGET}"
_last_jail="$(echo ${JAILS} | awk '{print $NF}')"
errors=0
@@ -126,7 +127,6 @@ for _jail in ${JAILS}; do
fi
# Print blank line on last jail
_last_jail="$(echo ${JAILS} | awk '{print $NF}')"
[ "${_jail}" = "${_last_jail}" ] && echo ""
done