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

search only in pom
This commit is contained in:
Roberto Cirillo 2021-03-09 15:27:58 +01:00
parent 3d5c836e9d
commit 5abc212618
1 changed files with 2 additions and 2 deletions

View File

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