commit d20025fa55236802f4e7105ec4bfba6b19392826
parent 0fd191a47b28f8dac4d5996fd1ecf9db53546d3e
Author: Florian Dold <florian@dold.me>
Date: Mon, 26 Aug 2024 13:38:53 +0200
-fix test
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/sandcastle-amp-form b/data/sandcastle-amp-form
@@ -90,7 +90,7 @@ J=$(echo "$A" | jq -r 'def get($k):
# Raise investigation if Name contains mallory
# (Very very crude check for demo purposes)
TO_INVESTIGATE=false
-if [[ $J == *"Mallory"* ]]; then
+if grep -q "Mallory" <<< "$J"; then
TO_INVESTIGATE=true
fi