diff --git a/27-01-2021-grepString/grepHomeLibrary.sh b/27-01-2021-grepString/grepHomeLibrary.sh index d049196..193940f 100644 --- a/27-01-2021-grepString/grepHomeLibrary.sh +++ b/27-01-2021-grepString/grepHomeLibrary.sh @@ -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