From 7d3ec6ea0e79b7193f9f3a19c4738abca1fca670 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Wed, 14 May 2025 09:03:19 -0600 Subject: [PATCH] config: Fix options --- usr/local/share/bastille/config.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/usr/local/share/bastille/config.sh b/usr/local/share/bastille/config.sh index 29a66fcf..e1e9e79a 100644 --- a/usr/local/share/bastille/config.sh +++ b/usr/local/share/bastille/config.sh @@ -34,7 +34,7 @@ usage() { - error_notify "Usage: bastille config TARGET [get|set|remove] PROPERTY VALUE" + error_notify "Usage: bastille config [option(s)] TARGET [get|(set|add)|remove] PROPERTY VALUE" cat << EOF Options: @@ -94,13 +94,17 @@ case "${ACTION}" in usage fi ;; - set|remove) + add|set|remove) ;; *) - error_exit "[ERROR]: Only set, remove and get are supported." + error_exit "[ERROR]: Only (add|set), get and remove are supported." ;; esac +if [ "${ACTION}" = "add" ]; then + ACTION="set" +fi + PROPERTY="${1}" shift VALUE="$@"