diff --git a/18-05-22-grepString/grepHomeLibrary.sh b/18-05-22-grepString/grepHomeLibrary.sh index 193940f..5cfc271 100644 --- a/18-05-22-grepString/grepHomeLibrary.sh +++ b/18-05-22-grepString/grepHomeLibrary.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash -out=`find . -name pom.xml -exec grep 'home-library' /dev/null {} + || echo 'empty'` +out=`find . -name pom.xml -exec grep -E 'imagej|itext' /dev/null {} + || echo 'empty'` if [[ ["${out}" != "empty"] && "$(grep pom.xml <<< ${out})" ]]; then echo "${out}" - echo "Home Library found" + echo "Home Library dep found" else - echo "Home Library not found" -fi \ No newline at end of file + echo "Home Library dep not found" +fi