mirror of
https://github.com/BastilleBSD/bastille.git
synced 2025-12-11 01:19:52 +01:00
updating Usage output and standardizing target variable
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user