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