terraform-provider-bigip
terraform-provider-bigip copied to clipboard
Fix handling of single quotes in shell commands
Previously, if a command in the bigip_command resource contained single quotes, the constructed shell command would have unbalanced quotes, leading to syntax errors and command execution failures. This commit fixes the issue by escaping single quotes within the commands before wrapping them in single quotes. This ensures that all commands are properly formatted and executed, even if they contain single quotes.
- Escape single quotes in commands before constructing the shell command
- Prevents syntax errors due to unbalanced quotes
- Enhances security by mitigating potential command injection risks