From e3a33933a4c33c27102d709dbfa2fdccf6d4448c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 28 Nov 2014 17:59:18 +0200 Subject: [PATCH] cleanup backups after patching --- composer.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.spec b/composer.spec index 1cdf49f..117b42c 100644 --- a/composer.spec +++ b/composer.spec @@ -103,6 +103,9 @@ mv composer-*/* . mv composer.lock{,.disabled} %{__sed} -i -e '1s,^#!.*env php,#!%{__php},' bin/* +# cleanup backups after patching +find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f + %build %if %{with bootstrap} composer='%{__php} %{SOURCE1}' -- 2.44.0