From d9469f5d5f0bb36828987c967e1f6dd46766bd74 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Wed, 18 May 2022 16:26:57 +0200 Subject: [PATCH] add script --- 18-05-22-grepString/grepHomeLibrary.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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