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

Description

Checks for useless slash between %{buildroot} and path macro.

Problematic code

%install
rm -rf %{buildroot}

install -pm app.conf %{buildroot}/%{_sysconfdir}

Correct code

%install
rm -rf %{buildroot}

install -pm app.conf %{buildroot}%{_sysconfdir}

Rationale

Path macroses already have a leading slash symbol.

Clone this wiki locally