From 754654e61449685e97432d50278abf803a8f8c68 Mon Sep 17 00:00:00 2001 From: Nick Cooke <36927374+ncooke3@users.noreply.github.com> Date: Fri, 19 Dec 2025 13:39:48 -0500 Subject: [PATCH] fix: pod_lib_lint.rb should print copy-and-paste friendly command --- scripts/pod_lib_lint.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/pod_lib_lint.rb b/scripts/pod_lib_lint.rb index dcc4f7b645c..ffe67e54955 100755 --- a/scripts/pod_lib_lint.rb +++ b/scripts/pod_lib_lint.rb @@ -84,7 +84,9 @@ def main(args) command.push('--analyze') if analyze command.push(*pod_args) - puts command.join(' ') + # Quote arguments containing curly braces to ensure they are treated as literal strings + # by the shell when the command is copy-pasted, preventing unintended brace expansion. + puts command.map { |arg| arg =~ /[{}]/ ? "'#{arg}'" : arg }.join(' ') # Run the lib lint command in a thread. pod_lint_status = 1