This commit is contained in:
olli 2024-08-20 22:50:37 +02:00
parent 02ac1d431d
commit 6282e6a591

View File

@ -745,6 +745,7 @@
# If message should be sent by another host
if [ -n "$tohost" ]
then
[[ $@ =~ -g ]] || group="-g $togroup"
[ -z "$togroup" ] && group="-g $(hostname)"
echo "$message" | ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -p33 $tohost " $(printf ' %q' "$@ $group")"
fi