From 880c19dfe3ff870407ec0456510427be1bb94638 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Thu, 23 Aug 2018 09:11:20 +0200 Subject: [PATCH] Fix bad grep --- wol/scripts/sendmac.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wol/scripts/sendmac.sh b/wol/scripts/sendmac.sh index 80ed7e9..02fce1e 100755 --- a/wol/scripts/sendmac.sh +++ b/wol/scripts/sendmac.sh @@ -18,7 +18,7 @@ IP=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1) netcat="netcat -l $IP 9999" -KPID=`ps aux | grep \'$netcat\' | awk '{print $2}'` +KPID=`ps aux | grep "$netcat" | awk '{print $2}'` [ ! -z "$KPID" ] && kill $KPID subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -f 1-3) -- GitLab