fix script

This commit is contained in:
Roberto Cirillo 2021-11-12 11:25:45 +01:00
parent 4f4a265482
commit 56c86d212c
1 changed files with 2 additions and 2 deletions

View File

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