diff --git a/usr/local/share/bastille/sysrc.sh b/usr/local/share/bastille/sysrc.sh index 7e838363..6d40fe50 100644 --- a/usr/local/share/bastille/sysrc.sh +++ b/usr/local/share/bastille/sysrc.sh @@ -31,7 +31,7 @@ . /usr/local/share/bastille/colors.pre.sh usage() { - echo -e "${COLOR_RED}Usage: bastille sysrc [ALL|glob] 'sysrc command'${COLOR_RESET}" + echo -e "${COLOR_RED}Usage: bastille sysrc TARGET args${COLOR_RESET}" exit 1 } @@ -49,12 +49,12 @@ 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