Update '27-01-2021-grepString/grepHomeLibrary.sh'
search only in pom
This commit is contained in:
parent
3d5c836e9d
commit
5abc212618
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue