Simplify the command in grepHTTTP and print the files where the string is found.
This commit is contained in:
parent
564436828e
commit
5afc9efc0e
|
@ -1,6 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
if [[ "$(find . -name *.java | xargs grep 'http://')" ]]; then
|
|
||||||
echo "http protocol found"
|
find . -name '*.java' -exec grep 'http://' /dev/null {} +
|
||||||
else
|
|
||||||
echo "http protocol not found"
|
|
||||||
fi
|
|
Loading…
Reference in New Issue