From 564436828e098b2f65e93ee8ade833468efc4455 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Fri, 12 Feb 2021 14:35:02 -0500 Subject: [PATCH] Tweak command in grepHTTP action. --- 27-01-2021-grepString/grepHttp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/27-01-2021-grepString/grepHttp.sh b/27-01-2021-grepString/grepHttp.sh index e5e5d47..2daf584 100644 --- a/27-01-2021-grepString/grepHttp.sh +++ b/27-01-2021-grepString/grepHttp.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -if [[ "$(grep -r 'http://' .)" ]]; then +if [[ "$(find . -name *.java | xargs grep 'http://')" ]]; then echo "http protocol found" else echo "http protocol not found"