Update '27-01-2021-grepString/grepHomeLibrary.sh'

fix home-library script
This commit is contained in:
Roberto Cirillo 2021-03-09 15:23:03 +01:00
parent a78b837b99
commit 3d5c836e9d
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
out=`find . -name pom.xml -exec grep home-library /dev/null {} + || echo 'empty'`
if [[ ["${out}" != "empty"] && "$(grep '\.java' <<< ${out})" ]]; then
out=`find . -name '*.xml' -exec grep 'home-library' /dev/null {} + || echo 'empty'`
if [[ ["${out}" != "empty"] && "$(grep '\.xml' <<< ${out})" ]]; then
echo "${out}"
echo “Home Library found"
echo "Home Library found"
else
echo “Home Library not found"
echo "Home Library not found"
fi