mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-04 03:33:41 +01:00
set _LAST_JAIL in common
This commit is contained in:
@@ -84,7 +84,6 @@ shift
|
||||
|
||||
bastille_root_check
|
||||
set_target "${TARGET}"
|
||||
_last_jail="$(echo ${JAILS} | awk '{print $NF}')"
|
||||
|
||||
for _jail in ${JAILS}; do
|
||||
|
||||
@@ -101,6 +100,6 @@ for _jail in ${JAILS}; do
|
||||
jexec -l "${_jail}" /usr/sbin/sysrc "$@"
|
||||
|
||||
# Print blank line on last jail
|
||||
[ "${_jail}" = "${_last_jail}" ] && echo ""
|
||||
[ "${_jail}" = "${_LAST_JAIL}" ] && echo ""
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user