mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-18 16:21:32 +01:00
Merge pull request #1057 from BastilleBSD/tschettervictor-patch-2
This commit is contained in:
@@ -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="$@"
|
||||
|
||||
Reference in New Issue
Block a user