gCubeActions/18-05-22-grepString/grepHomeLibrary.sh

9 lines
274 B
Bash

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