Tweak grep HTTP action.
This commit is contained in:
parent
9a40498eed
commit
6cea4a6280
|
@ -1,4 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
message="HTTP protocol found"
|
out=`find . -name '*.java' -exec grep 'http://' /dev/null {} +`
|
||||||
find . -name '*.java' -exec grep 'http://' /dev/null {} + || message="HTTP protocol not found"
|
echo "${out}"
|
||||||
echo "--- ${message} ---"
|
if [[ "$(grep 'java' out)" ]]; then
|
||||||
|
echo "HTTP protocol found"
|
||||||
|
else
|
||||||
|
echo "HTTP protocol not found"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue