Skip to content

Commit

Permalink
Merge pull request #105 from davidferlay/script-verbosity
Browse files Browse the repository at this point in the history
Refactoring cinsp and clang script verbosity
  • Loading branch information
ilyano authored Jul 4, 2019
2 parents 2efa8eb + 7d78276 commit cebb954
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/makefile/baseconfig-langcode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion scripts/makefile/config-inspector-validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cebb954

Please sign in to comment.