Actions
Bug #23664
openrudderc may produce malformed powershell scripts
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
I hate Rudder for that
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
74
Name check:
To do
Fix check:
To do
Regression:
No
Description
To reproduce, try to define a technique with the following content as input of any of the methods:
test $(grep -Pr --include=*.{sources,conf} '^\h*server\h+\H+' /etc/chrony/ | wc -l) -ge 3
The resulting powershell technique will have at least one line looking like:
$componentKey = "test $(grep -Pr --include=*.{sources,conf} '^\h*server\h+\H+' /etc/chrony/ | wc -l) -ge 3"
which is un-parsable for powershell as the comma is interpreted as a comma operator to define a list due to the `$()` used in the field.
Actions