From 5d2954feb9a3a8ec92144cca76535f37020e2e2b Mon Sep 17 00:00:00 2001 From: Christer Edwards Date: Fri, 22 Nov 2019 22:07:14 -0700 Subject: [PATCH] updating Usage output and standardizing target variable --- usr/local/share/bastille/zfs.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/local/share/bastille/zfs.sh b/usr/local/share/bastille/zfs.sh index bdc137b8..90f00d97 100644 --- a/usr/local/share/bastille/zfs.sh +++ b/usr/local/share/bastille/zfs.sh @@ -32,7 +32,7 @@ . /usr/local/etc/bastille/bastille.conf usage() { - echo -e "${COLOR_RED}Usage: bastille zfs [ALL|glob] [set|get|snap] [key=value|date]'${COLOR_RESET}" + echo -e "${COLOR_RED}Usage: bastille zfs TARGET [set|get|snap] [key=value|date]'${COLOR_RESET}" exit 1 } @@ -93,12 +93,12 @@ fi TARGET="${1}" -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 case "$2" in