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 17, 2024
1 parent ac30b36 commit 1b23c04
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions usr/local/share/bastille/top.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 1b23c04

Please sign in to comment.