gCubeActions/27-01-2021-grepString/grepHomeLibrary.sh

8 lines
262 B
Bash

#!/usr/bin/env bash
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
echo "Home Library not found"
fi