From 5913fcc6890ad9291746f8a4fbf2843fe9ac4ef9 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Fri, 20 Dec 2024 22:41:18 -0700 Subject: [PATCH] Update top.sh --- usr/local/share/bastille/top.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/usr/local/share/bastille/top.sh b/usr/local/share/bastille/top.sh index 34f7fa71..f7d97ee6 100644 --- a/usr/local/share/bastille/top.sh +++ b/usr/local/share/bastille/top.sh @@ -52,11 +52,7 @@ bastille_root_check set_target_single "${TARGET}" check_target_is_running "${TARGET}" || exit -bastille_jail_path="$(/usr/sbin/jls -j "${TARGET}" path)" -if [ ! -x "${bastille_jail_path}/usr/local/bin/top" ]; then - error_notify "top not found on ${TARGET}." -elif [ -x "${bastille_jail_path}/usr/local/bin/top" ]; then - info "[${TARGET}]:" - jexec -l "${TARGET}" /usr/local/bin/htop -fi + +info "[${TARGET}]:" +jexec -l "${TARGET}" /usr/bin/top echo -e "${COLOR_RESET}"