fix
This commit is contained in:
parent
02ac1d431d
commit
6282e6a591
@ -745,6 +745,7 @@
|
|||||||
# If message should be sent by another host
|
# If message should be sent by another host
|
||||||
if [ -n "$tohost" ]
|
if [ -n "$tohost" ]
|
||||||
then
|
then
|
||||||
|
[[ $@ =~ -g ]] || group="-g $togroup"
|
||||||
[ -z "$togroup" ] && group="-g $(hostname)"
|
[ -z "$togroup" ] && group="-g $(hostname)"
|
||||||
echo "$message" | ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -p33 $tohost " $(printf ' %q' "$@ $group")"
|
echo "$message" | ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new -p33 $tohost " $(printf ' %q' "$@ $group")"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user