From 6282e6a591036261f1c96d05b92a865577b64072 Mon Sep 17 00:00:00 2001 From: olli <> Date: Tue, 20 Aug 2024 22:50:37 +0200 Subject: [PATCH] fix --- basics.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/basics.yml b/basics.yml index f6db65c..209e73c 100644 --- a/basics.yml +++ b/basics.yml @@ -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