rework blank line

This commit is contained in:
tschettervictor
2025-04-29 21:51:24 -06:00
parent f21bedb53c
commit 046cf87e79
16 changed files with 113 additions and 77 deletions

View File

@@ -96,15 +96,18 @@ errors=0
for _jail in ${JAILS}; do
echo ""
info "[${_jail}]:"
check_target_is_running "${_jail}" || if [ "${AUTO}" -eq 1 ]; then
bastille start "${_jail}"
else
else
info "[${_jail}]:"
error_notify "Jail is not running."
error_continue "Use [-a|--auto] to auto-start the jail."
fi
# Print blank line in front of first jail
[ "${_jail}" = "${_FIRST_JAIL}" ] && echo ""
info "[${_jail}]:"
bastille_jail_path="${bastille_jailsdir}/${_jail}/root"
if [ -f "/usr/sbin/mport" ]; then
@@ -125,8 +128,8 @@ for _jail in ${JAILS}; do
fi
fi
# Print blank line on last jail
[ "${_jail}" = "${_LAST_JAIL}" ] && echo ""
# Print blank line
echo ""
done