Merge pull request #1057 from BastilleBSD/tschettervictor-patch-2

This commit is contained in:
tschettervictor
2025-05-14 09:04:29 -06:00
committed by GitHub

View File

@@ -34,7 +34,7 @@
usage() { 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 cat << EOF
Options: Options:
@@ -94,13 +94,17 @@ case "${ACTION}" in
usage usage
fi 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 esac
if [ "${ACTION}" = "add" ]; then
ACTION="set"
fi
PROPERTY="${1}" PROPERTY="${1}"
shift shift
VALUE="$@" VALUE="$@"