autocommit
This commit is contained in:
parent
167179df7c
commit
046f1e8a8d
2 changed files with 14 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
function broadcast() {
|
function broadcast() {
|
||||||
echo "$1 : $2"
|
podman exec "$1" "$2"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,17 +8,17 @@ function server() {
|
||||||
local server="$1"
|
local server="$1"
|
||||||
|
|
||||||
if [[ "$2" != "" ]]; then
|
if [[ "$2" != "" ]]; then
|
||||||
case "${2}" in
|
case "${2}" in
|
||||||
"help")
|
"help")
|
||||||
help "$server"
|
help "$server"
|
||||||
;;
|
;;
|
||||||
"broadcast")
|
"broadcast")
|
||||||
shift
|
shift
|
||||||
broadcast "$server" "$2"
|
broadcast "$server" "$2"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
help "$server"
|
help "$server"
|
||||||
log e "Unknown subcommand: '$2'"
|
log e "Unknown subcommand: '$2'"
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue