From 1b23c044de1be0f167b19b92aa22306773b7bb2e Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:19:20 -0700 Subject: [PATCH] Update top.sh --- usr/local/share/bastille/top.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr/local/share/bastille/top.sh b/usr/local/share/bastille/top.sh index c87cf786..351a2dfe 100644 --- a/usr/local/share/bastille/top.sh +++ b/usr/local/share/bastille/top.sh @@ -48,10 +48,11 @@ if [ $# -eq 0 ] || [ $# -gt 1 ]; then fi TARGET="${1}" -set_target_single "${TARGET}" bastille_root_check -check_target_is_running "${_jail}" +set_target_single "${TARGET}" +check_target_exists "${TARGET}" +check_target_is_running "${TARGET}" -info "[${_jail}]:" -jexec -l "${_jail}" /usr/bin/top +info "[${TARGET}]:" +jexec -l "${TARGET}" /usr/bin/top echo -e "${COLOR_RESET}"