Manage empty results.
This commit is contained in:
parent
d7628dd125
commit
ce191006c6
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
out=`find . -name '*.java' -exec grep 'http://' /dev/null {} +`
|
out=`find . -name '*.java' -exec grep 'http://' /dev/null {} + || echo 'empty'`
|
||||||
echo "${out}"
|
if [[ ["${out}" != "empty"] && "$(grep '\.java' <<< ${out})" ]]; then
|
||||||
if [[ -n "${out}" && "$(grep '\.java' <<< ${out})" ]]; then
|
echo "${out}"
|
||||||
echo "HTTP protocol found"
|
echo "HTTP protocol found"
|
||||||
else
|
else
|
||||||
echo "HTTP protocol not found"
|
echo "HTTP protocol not found"
|
||||||
|
|
Loading…
Reference in New Issue