fix(copr): remove attributes in first line from all source files

This commit is contained in:
Erica Marigold 2025-01-31 13:06:55 +05:30 committed by GitHub
parent 1352efc33e
commit 94f5b37a43
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,7 @@ Requires: glibc
%prep
%setup -q -n lune-%{version}
# Removes the first line containing clippy lint attribute which is falsely flagged as a shebang in build
sed -i '1d' crates/lune/src/main.rs
find . -type f -name "*.rs" -exec perl -i -ne 'print unless /^\#!\[/ ' {} +
%build