added if statement to grepHttp script
This commit is contained in:
parent
8d6921d192
commit
74061c222d
|
@ -1,3 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
find . -name '*.java' -exec grep 'http://' /dev/null {} + || echo "No http found"
|
||||
if [[ "$(find . -name '*.java' -exec grep 'http://' /dev/null {} +)" ]]; then
|
||||
echo "http protocol found"
|
||||
else
|
||||
echo " http not found"
|
||||
fi
|
||||
|
||||
|
||||
find . -name '*.java' -exec grep 'http://' /dev/null {} + || echo "No http found"
|
||||
|
|
Loading…
Reference in New Issue