From 94f5b37a432cfb7772afdd5029de53f16203ed24 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Fri, 31 Jan 2025 13:06:55 +0530 Subject: [PATCH] fix(copr): remove attributes in first line from all source files --- package/copr/lune.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/copr/lune.spec b/package/copr/lune.spec index eeb8607..6c9d3b4 100644 --- a/package/copr/lune.spec +++ b/package/copr/lune.spec @@ -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