ci(linux): fix incorrect use of grep -v (#4151)

I think I used `-v` wrong here. I meant it to negate a regular grep, but
it will probably always return true since it negates the matching, not
the exit code.

---------

Signed-off-by: Reactor Scram <ReactorScram@users.noreply.github.com>
This commit is contained in:
Reactor Scram
2024-03-15 14:06:57 -05:00
committed by GitHub
parent abf3402e50
commit 3ced2b3a20

View File

@@ -40,7 +40,7 @@ echo "# Make sure it's going through the tunnel"
client_nslookup "$HTTPBIN" | grep "100\\.96\\.0\\."
echo "# Make sure a non-resource doesn't go through the tunnel"
client_nslookup "github.com" | grep -v "100\\.96.\\0\\."
(client_nslookup "github.com" | grep "100\\.96.\\0\\.") && exit 1
echo "# Stop the gateway and make sure the resource is inaccessible"
docker compose stop gateway