From e0dfc33e4611705d8144b3419ec6f06467372b51 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 16 Dec 2024 12:26:46 -0700 Subject: [PATCH] move jail running check to for loop --- usr/local/share/bastille/top.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/top.sh b/usr/local/share/bastille/top.sh index 7c319ed3..029b88d7 100644 --- a/usr/local/share/bastille/top.sh +++ b/usr/local/share/bastille/top.sh @@ -47,8 +47,7 @@ shift if [ "${TARGET}" = "ALL" ]; then target_all_jails else - check_jail_exists "${TARGET}" - check_target_is_running "${TARGET}" + check_target_exists "${TARGET}" fi if [ $# -ne 0 ]; then @@ -58,6 +57,7 @@ fi bastille_root_check for _jail in ${JAILS}; do + check_target_is_running "${TARGET}" info "[${_jail}]:" jexec -l "${_jail}" /usr/bin/top echo -e "${COLOR_RESET}"