From 4e0c5d5934578a9d5088e4861061ba15d60523ee Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Sat, 3 Oct 2026 04:55:18 +0100 Subject: [PATCH] style(scripts): match the Homebrew shfmt layout Homebrew shfmt wants do on its own line. brew style on the tap now reports no offenses. --- scripts/fix-casks.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/fix-casks.sh b/scripts/fix-casks.sh index d06bdb3..a624431 100755 --- a/scripts/fix-casks.sh +++ b/scripts/fix-casks.sh @@ -3,6 +3,7 @@ # with Cask/InstallSteps. Rewrite it to postflight_steps. set -euo pipefail -for cask in Casks/*.rb; do +for cask in Casks/*.rb +do perl -0pi -e 's| postflight do\n if OS\.mac\?\n system_command "/usr/bin/xattr",\n\s+args: \["-dr", "com\.apple\.quarantine", "#\{staged_path\}/([\w-]+)"\]\n end\n end\n| postflight_steps do\n on_macos do\n run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{staged_path}}/$1"]\n end\n end\n|' "${cask}" done