Make submodule check less verbose

This commit is contained in:
Lorenz Meier 2016-03-11 12:07:26 +01:00
parent b937618e59
commit 0720407b8c
1 changed files with 2 additions and 3 deletions

View File

@ -16,9 +16,8 @@ if [ -f $1"/.git" ];
then
SUBMODULE_STATUS=$(git submodule summary "$1")
STATUSRETVAL=$(echo $SUBMODULE_STATUS | grep -A20 -i "$1")
if [ -z "$STATUSRETVAL" ]; then
echo "Checked $1 submodule, correct version found"
else
if ! [[ -z "$STATUSRETVAL" ]];
then
echo -e "\033[31mChecked $1 submodule, ACTION REQUIRED:\033[0m"
echo ""
echo -e "Different commits:"