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

home-library dep check
This commit is contained in:
Roberto Cirillo 2021-03-09 14:53:37 +01:00
parent ce191006c6
commit 5689a9f011
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +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
echo "${out}"
echo “Home Library found"
else
echo “Home Library not found"
fi