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
|
||||
|
||||
if [[ "$(find . -name '*.java' -exec grep 'http://' /dev/null {} +)" ]]; then
|
||||
echo "http protocol found"
|
||||
else
|
||||
echo " http not found"
|
||||
fi
|
||||
|
||||
message="HTTP protocol found"
|
||||
find . -name '*.java' -exec grep 'http://' /dev/null {} + || message="HTTP protocol not found"
|
||||
echo "--- ${message} ---"
|
Loading…
Reference in New Issue