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