mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-03 19:23:42 +01:00
only set _last_jail once
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user