From 55b70795af14871a48e78d22ad5fde2715664c7a Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sun, 4 Aug 2024 23:57:49 +0100 Subject: [PATCH] Formula-Cookbook: Stop recommending `rm_f` in `postinstall` - After all the work that went into https://github.com/Homebrew/brew/pull/17705, we don't want the docs disagreeing with what CI says the style should be. --- docs/Formula-Cookbook.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Formula-Cookbook.md b/docs/Formula-Cookbook.md index e037f01d61ccbc..3883964384ffb3 100644 --- a/docs/Formula-Cookbook.md +++ b/docs/Formula-Cookbook.md @@ -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") pkgetc.install_symlink Formula["ca-certificates"].pkgetc/"cert.pem" end # ...