diff --git a/27-01-2021-grepString/grepHomeLibrary.sh b/27-01-2021-grepString/grepHomeLibrary.sh index be518ee..ac7b7ee 100644 --- a/27-01-2021-grepString/grepHomeLibrary.sh +++ b/27-01-2021-grepString/grepHomeLibrary.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -out=`find . -name ‘pom.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 '\.java' <<< ${out})" ]]; then echo "${out}" echo “Home Library found"