Skip to content
Snippets Groups Projects
Verified Commit 880c19df authored by David Beniamine's avatar David Beniamine
Browse files

Fix bad grep

parent d910d6b3
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment