Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: Fix Homebrew/NoFileutilsRmrf RuboCop offenses #178914

Merged
merged 3 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading