diff --git a/27-01-2021-grepString/grepUmaJwtTokenPrvider.sh b/27-01-2021-grepString/grepUmaJwtTokenPrvider.sh index 8187486..b869e93 100644 --- a/27-01-2021-grepString/grepUmaJwtTokenPrvider.sh +++ b/27-01-2021-grepString/grepUmaJwtTokenPrvider.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -out=`find . -name '*.java' -exec grep 'UmaJwtToken' /dev/null {} +` -if [[ -n "${out}" ]]; then +out=`find . -name '*.java' -exec grep 'UmaJwtToken' /dev/null {} + || echo 'empty'` +if [[ ["${out}" != "empty"] && "$(grep '\.java' <<< ${out})" ]]; then echo "UmaJwtToken class found in " echo "${out}" else