Skip to content

Commit

Permalink
Update top.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tschettervictor authored Dec 21, 2024
1 parent 4a93f61 commit 5913fcc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions usr/local/share/bastille/top.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 5913fcc

Please sign in to comment.