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 b225320 commit bff6b93
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions usr/local/share/bastille/top.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@ if [ $# -eq 0 ] || [ $# -gt 1 ]; then
usage
fi

set_target_single "${1}"
TARGET="${1}"
set_target_single "${TARGET}"
bastille_root_check
check_target_is_running "${_jail}"

for _jail in "${JAILS}"; do
check_target_is_running "${_jail}"
info "[${_jail}]:"
jexec -l "${_jail}" /usr/bin/top
echo -e "${COLOR_RESET}"
done
info "[${_jail}]:"
jexec -l "${_jail}" /usr/bin/top
echo -e "${COLOR_RESET}"

0 comments on commit bff6b93

Please sign in to comment.