diff --git a/usr/local/share/bastille/htop.sh b/usr/local/share/bastille/htop.sh index 81261d05..f93bcbd0 100644 --- a/usr/local/share/bastille/htop.sh +++ b/usr/local/share/bastille/htop.sh @@ -32,7 +32,7 @@ . /usr/local/etc/bastille/bastille.conf usage() { - echo -e "${COLOR_RED}Usage: bastille htop [ALL|glob]'.${COLOR_RESET}" + echo -e "${COLOR_RED}Usage: bastille htop TARGET${COLOR_RESET}" exit 1 } @@ -48,12 +48,13 @@ if [ $# -gt 1 ] || [ $# -lt 1 ]; then fi TARGET="${1}" +shift -if [ "$TARGET" = 'ALL' ]; then +if [ "${TARGET}" = 'ALL' ]; then JAILS=$(jls name) fi -if [ "$TARGET" != 'ALL' ]; then - JAILS=$(jls name | grep -w "${1}") +if [ "${TARGET}" != 'ALL' ]; then + JAILS=$(jls name | grep -w "${TARGET}") fi for _jail in ${JAILS}; do