fix
This commit is contained in:
parent
02ac1d431d
commit
6282e6a591
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user