From b1df0ab27073a1eb9b560384a651fcca1f95b697 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Sat, 3 Oct 2026 04:49:33 +0100 Subject: [PATCH] style(scripts): brace the variable in the cask fix script The tap shellcheck configuration wants braces around variable references, and test-bot failed on the new script. --- scripts/fix-casks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fix-casks.sh b/scripts/fix-casks.sh index c494853..d06bdb3 100755 --- a/scripts/fix-casks.sh +++ b/scripts/fix-casks.sh @@ -4,5 +4,5 @@ set -euo pipefail 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" + 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