From 5abc212618038433508734858fbfee598c5e9106 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Tue, 9 Mar 2021 15:27:58 +0100 Subject: [PATCH] Update '27-01-2021-grepString/grepHomeLibrary.sh' search only in pom --- 27-01-2021-grepString/grepHomeLibrary.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/27-01-2021-grepString/grepHomeLibrary.sh b/27-01-2021-grepString/grepHomeLibrary.sh index d049196..193940f 100644 --- a/27-01-2021-grepString/grepHomeLibrary.sh +++ b/27-01-2021-grepString/grepHomeLibrary.sh @@ -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