fix again the script

This commit is contained in:
Roberto Cirillo 2023-01-18 10:07:40 +01:00
parent 2393e09f4e
commit e6f1f0a22d
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
out=`find . -name '*.java' -exec grep '-843339462' /dev/null {} +`
if [[ -n "${out}" ]]; then
echo "token found in: "
out=`find . -name '*.java' -exec grep '843339462' /dev/null {} + || echo 'empty'`
if [[ ["${out}" != "empty"] && "$(grep '\.java' <<< ${out})" ]]; then
echo "${out}"
echo "token found"
else
echo "token not found"
fi