autocommit

This commit is contained in:
LinuxSquare 2024-04-21 14:54:01 +02:00
parent 167179df7c
commit 046f1e8a8d
2 changed files with 14 additions and 14 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
function broadcast() {
echo "$1 : $2"
podman exec "$1" "$2"
}

View file

@ -8,17 +8,17 @@ function server() {
local server="$1"
if [[ "$2" != "" ]]; then
case "${2}" in
"help")
help "$server"
;;
"broadcast")
shift
broadcast "$server" "$2"
;;
*)
help "$server"
log e "Unknown subcommand: '$2'"
esac
fi
case "${2}" in
"help")
help "$server"
;;
"broadcast")
shift
broadcast "$server" "$2"
;;
*)
help "$server"
log e "Unknown subcommand: '$2'"
esac
fi
}