Skip to content

Commit

Permalink
Formula-Cookbook: Stop recommending rm_f in postinstall
Browse files Browse the repository at this point in the history
- After all the work that went into
  #17705, we
  don't want the docs disagreeing with what CI says
  the style should be.
  • Loading branch information
issyl0 committed Aug 4, 2024
1 parent 9279693 commit 55b7079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Formula-Cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ class Foo < Formula
url "https://example.com/foo-1.0.tar.gz"

def post_install
rm_f pkgetc/"cert.pem"
rm pkgetc/"cert.pem" if File.exist?(pkgetc/"cert.pem")

Check failure on line 998 in docs/Formula-Cookbook.md

View workflow job for this annotation

GitHub Actions / docs

Use atomic file operation method `FileUtils.rm_f`.
pkgetc.install_symlink Formula["ca-certificates"].pkgetc/"cert.pem"
end
# ...
Expand Down

0 comments on commit 55b7079

Please sign in to comment.