From 7d782763de182e1ce5a822c2957628fe04747d5a Mon Sep 17 00:00:00 2001 From: David Ferlay Date: Thu, 4 Jul 2019 14:33:04 +0200 Subject: [PATCH] Refactoring cinsp and clang script verbosity --- scripts/makefile/baseconfig-langcode.sh | 4 +++- scripts/makefile/config-inspector-validation.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/makefile/baseconfig-langcode.sh b/scripts/makefile/baseconfig-langcode.sh index 4d287e66b..4507da371 100755 --- a/scripts/makefile/baseconfig-langcode.sh +++ b/scripts/makefile/baseconfig-langcode.sh @@ -28,7 +28,9 @@ then done if [ $FAIL -eq 1 ] then - echo -e "$MESSAGE_OUTPUT \n\n\e[33mBase configs should always be in same language as default site language.\e[0m\n\n\e[31mCOMMIT REJECTED!\e[0m\n" + echo -e "$MESSAGE_OUTPUT \n\n\e[33mBase configs should have the same langcode as default site language.\n" + else + echo "Langcode of config files are valid" fi exit $FAIL fi diff --git a/scripts/makefile/config-inspector-validation.sh b/scripts/makefile/config-inspector-validation.sh index 2520f03f2..3320e1096 100755 --- a/scripts/makefile/config-inspector-validation.sh +++ b/scripts/makefile/config-inspector-validation.sh @@ -7,8 +7,9 @@ ERROR_COUNT=$(drush config:inspect --only-error --format=string | wc -l) # Exit1 and alert if logs if [ "$ERROR_COUNT" -gt "0" ]; then - printf "There are \033[1m$ERROR_COUNT errors\033[0m identified by config_inspector to fix :\n" + printf "\n- \033[1m$ERROR_COUNT error(s)\033[0m identified by config_inspector to fix :\n" drush config:inspect --only-error + echo -e "\nConfiguration is not valid : \n- Go to \033[1m/admin/config/development/configuration/inspect\033[0m for more details\n" exit 1 else echo -e "Configuration is valid"