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
|
#!/usr/bin/env bash
|
||||||
out=`find . -name '*.xml' -exec grep 'home-library' /dev/null {} + || echo 'empty'`
|
out=`find . -name pom.xml -exec grep 'home-library' /dev/null {} + || echo 'empty'`
|
||||||
if [[ ["${out}" != "empty"] && "$(grep '\.xml' <<< ${out})" ]]; then
|
if [[ ["${out}" != "empty"] && "$(grep pom.xml <<< ${out})" ]]; then
|
||||||
echo "${out}"
|
echo "${out}"
|
||||||
echo "Home Library found"
|
echo "Home Library found"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue