updating Usage output and standardizing target variable

This commit is contained in:
Christer Edwards
2019-11-22 22:07:14 -07:00
parent cd4f9ee22e
commit 5d2954feb9

View File

@@ -32,7 +32,7 @@
. /usr/local/etc/bastille/bastille.conf . /usr/local/etc/bastille/bastille.conf
usage() { 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 exit 1
} }
@@ -93,12 +93,12 @@ fi
TARGET="${1}" TARGET="${1}"
if [ "$TARGET" = 'ALL' ]; then if [ "${TARGET}" = 'ALL' ]; then
JAILS=$(jls name) JAILS=$(jls name)
fi fi
if [ "$TARGET" != 'ALL' ]; then if [ "${TARGET}" != 'ALL' ]; then
JAILS=$(jls name | grep -w "${1}") JAILS=$(jls name | grep -w "${TARGET}")
fi fi
case "$2" in case "$2" in