Skip to content

Commit

Permalink
cleanup backups after patching
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Aug 10, 2015
1 parent 4b35739 commit 44e2d7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ruby-fpm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ wasting pointless hours debugging bad rpm specs!
%patch0 -p1
%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*

# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f

%build
# write .gemspec
%__gem_helper spec
Expand Down

0 comments on commit 44e2d7b

Please sign in to comment.