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