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