set _LAST_JAIL in common

This commit is contained in:
tschettervictor
2025-04-29 21:08:08 -06:00
parent c501c92845
commit 310258f4b4
17 changed files with 26 additions and 36 deletions

View File

@@ -84,7 +84,6 @@ USER="${2}"
bastille_root_check
set_target "${TARGET}"
_last_jail="$(echo ${JAILS} | awk '{print $NF}')"
validate_user() {
local _jail="${1}"
@@ -136,6 +135,6 @@ for _jail in ${JAILS}; do
fi
# Print blank line on last jail
[ "${_jail}" = "${_last_jail}" ] && echo ""
[ "${_jail}" = "${_LAST_JAIL}" ] && echo ""
done