From f86ad1ff891c343eb120324cd2617759cb06df6a Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:20:22 -0700 Subject: [PATCH] Update htop.sh --- usr/local/share/bastille/htop.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr/local/share/bastille/htop.sh b/usr/local/share/bastille/htop.sh index 7b6084b6..c7e255a0 100644 --- a/usr/local/share/bastille/htop.sh +++ b/usr/local/share/bastille/htop.sh @@ -49,15 +49,16 @@ if [ $# -eq 0 ] || [ $# -gt 1 ]; then fi TARGET="${1}" -set_target_single "${TARGET}" bastille_root_check +set_target_single "${TARGET}" +check_target_exists "${TARGET}" check_target_is_running "${TARGET}" bastille_jail_path="$(/usr/sbin/jls -j "${TARGET}" path)" if [ ! -x "${bastille_jail_path}/usr/local/bin/htop" ]; then - error_notify "htop not found on ${_jail}." + error_notify "htop not found on ${TARGET}." elif [ -x "${bastille_jail_path}/usr/local/bin/htop" ]; then - info "[${_jail}]:" - jexec -l "${_jail}" /usr/local/bin/htop + info "[${TARGET}]:" + jexec -l "${TARGET}" /usr/local/bin/htop fi echo -e "${COLOR_RESET}"