From 005d76805a4ef4e7d51e89b0417f6deea30562f7 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Mon, 15 Jan 2024 11:19:15 +0800 Subject: [PATCH] package/scripts/postinstall: fix permissions of `opt` Fixes https://github.com/orgs/Homebrew/discussions/5052. --- package/scripts/postinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/scripts/postinstall b/package/scripts/postinstall index 3ba0992fd9..e9ba586c0c 100755 --- a/package/scripts/postinstall +++ b/package/scripts/postinstall @@ -92,7 +92,7 @@ fi # set permissions if [[ "${homebrew_directory}" == "/usr/local/Homebrew" ]] then - chown -R "${homebrew_pkg_user}:admin" Cellar Frameworks Homebrew bin etc include lib sbin share var + chown -R "${homebrew_pkg_user}:admin" Cellar Frameworks Homebrew bin etc include lib sbin share opt var else chown -R "${homebrew_pkg_user}:admin" . fi