test: show RPM Spec differences on status check

This commit is contained in:
Ben Grande 2024-07-08 18:00:01 +02:00
parent c06e4311f9
commit 0f6aa34a89
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -127,6 +127,7 @@ gen_spec(){
if test "${2-}" = "test"; then
if ! cmp -s "${target}" "${intended_target}"; then
echo "error: ${intended_target} is not up to date" >&2
diff --color=auto "${intended_target}" "${target}" || true
fail=1
else
if test -n "$(git diff --name-only "${intended_target}")"; then