From 46d3e710b31e17e1533e333321973f7b76db4200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 13 Apr 2022 12:32:08 +0200 Subject: [PATCH] Don't use `! ...` as a check See https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.org/thread/TFQGD7CSTD5WVKVT3WDIGF5D6DID5NK6/ --- python-sphinx_rtd_theme.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python-sphinx_rtd_theme.spec b/python-sphinx_rtd_theme.spec index 0f628ea..d3a8aba 100644 --- a/python-sphinx_rtd_theme.spec +++ b/python-sphinx_rtd_theme.spec @@ -140,9 +140,10 @@ rm docs/build/html/.buildinfo %endif # Test that the forbidden fonts were successfully removed from the css files -! grep 'format("woff2\?")' \ +grep 'format("woff2\?")' \ %{buildroot}%{python3_sitelib}/%{srcname}/static/css/badge_only.css \ - %{buildroot}%{python3_sitelib}/%{srcname}/static/css/theme.css + %{buildroot}%{python3_sitelib}/%{srcname}/static/css/theme.css \ +&& exit 1 || true %files -n python%{python3_pkgversion}-%{srcname} %doc README.html