We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaea12b commit 0a16fd1Copy full SHA for 0a16fd1
scripts/pod_lib_lint.rb
@@ -84,7 +84,9 @@ def main(args)
84
command.push('--analyze') if analyze
85
86
command.push(*pod_args)
87
- puts command.join(' ')
+ # Quote arguments containing curly braces to ensure they are treated as literal strings
88
+ # by the shell when the command is copy-pasted, preventing unintended brace expansion.
89
+ puts command.map { |arg| arg =~ /[{}]/ ? "'#{arg}'" : arg }.join(' ')
90
91
# Run the lib lint command in a thread.
92
pod_lint_status = 1
0 commit comments