Add message with results to grep HTTP action.

This commit is contained in:
Manuele Simi 2021-02-16 15:09:07 -05:00
parent bc999408ca
commit 9a40498eed
1 changed files with 3 additions and 7 deletions

View File

@ -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} ---"