From 4a93f61c2aea370a940f34b706275ef1cffb4895 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Fri, 20 Dec 2024 22:41:00 -0700 Subject: [PATCH] Update htop.sh --- usr/local/share/bastille/htop.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr/local/share/bastille/htop.sh b/usr/local/share/bastille/htop.sh index 8b79906b..d9741d15 100644 --- a/usr/local/share/bastille/htop.sh +++ b/usr/local/share/bastille/htop.sh @@ -36,7 +36,7 @@ usage() { } # Handle special-case commands first. -case "$1" in +case "${1}" in help|-h|--help) usage ;; @@ -52,11 +52,11 @@ bastille_root_check set_target_single "${TARGET}" check_target_is_running "${TARGET}" || exit -bastille_jail_path="$(/usr/sbin/jls -j "${TARGET}" path)" +bastille_jail_path=$(/usr/sbin/jls -j "${_jail}" path) if [ ! -x "${bastille_jail_path}/usr/local/bin/htop" ]; then - error_notify "htop not found on ${TARGET}." + error_notify "htop not found on ${_jail}." elif [ -x "${bastille_jail_path}/usr/local/bin/htop" ]; then - info "[${TARGET}]:" - jexec -l "${TARGET}" /usr/local/bin/htop + info "[${_jail}]:" + jexec -l ${_jail} /usr/local/bin/htop fi echo -e "${COLOR_RESET}"