Skip to content

Commit

Permalink
Merge pull request #178914 from Homebrew/lib-rubocop-no-rmrf
Browse files Browse the repository at this point in the history
lib: Fix `Homebrew/NoFileutilsRmrf` RuboCop offenses
  • Loading branch information
p-linnane committed Jul 31, 2024
2 parents 5e76c01 + ea0a132 commit b115aa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Formula/lib/libgccjit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def install

# We only install the relevant libgccjit files from libexec and delete the rest.
prefix.find do |f|
rm_rf f if !f.directory? && !f.basename.to_s.start_with?("libgccjit")
rm_r(f) if !f.directory? && !f.basename.to_s.start_with?("libgccjit")
end

# Provide a `lib/gcc/xy` directory to align with the versioned GCC formulae.
Expand Down
2 changes: 1 addition & 1 deletion Formula/lib/libngspice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def install
system "make", "install"

# remove script files
rm_rf Dir[share/"ngspice/scripts"]
rm_r(Dir[share/"ngspice/scripts"])
end

test do
Expand Down
2 changes: 1 addition & 1 deletion Formula/lib/libressl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def install
end

def post_install
rm_f pkgetc/"cert.pem"
rm(pkgetc/"cert.pem") if (pkgetc/"cert.pem").exist?
pkgetc.install_symlink Formula["ca-certificates"].pkgetc/"cert.pem"
end

Expand Down

0 comments on commit b115aa7

Please sign in to comment.