Skip to content
ᴀɴᴛᴏɴ ɴᴏᴠᴏᴊɪʟᴏᴠ edited this page Jun 23, 2024 · 4 revisions

Description

Checks for single equals symbol in %if clause.

Problematic code

%check
%if 0%{?rhel} = 8
%{make} check
%endif

Correct code

%check
%if 0%{?rhel} == 8
%{make} check
%endif

Rationale

If clause should be always used with double equals symbol.

Clone this wiki locally