diff --git a/Makefile b/Makefile index 5e19be8504..7f5064c7cb 100644 --- a/Makefile +++ b/Makefile @@ -88,8 +88,11 @@ update-pot-po-metadata: .PHONY: check-pot-changes check-pot-changes: - @git diff pkg/i18n/locales/abra.pot | grepdiff --output-matching=hunk POT-Creation-Date | git apply --reverse --allow-empty - @git diff-files --quiet + @git diff pkg/i18n/locales/abra.pot | grepdiff --output-matching=hunk POT-Creation-Date | git apply --reverse --allow-empty + @if ! git diff-files --quiet; then \ + git diff pkg/i18n/locales/abra.pot; \ + exit 1; \ + fi .PHONY: build-mo build-mo: