Skip to content

Commit 271f02b

Browse files
committed
refactor: apply input control value from end to start
For example, this will avoid applying the first parameter to $10 - $19 Signed-off-by: leo <[email protected]>
1 parent e5b845e commit 271f02b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ViewModels/ExecuteCustomAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public override Task<bool> Sure()
127127
ProgressDescription = "Run custom action ...";
128128

129129
var cmdline = _commandline;
130-
for (var i = 0; i < ControlParameters.Count; i++)
130+
for (var i = ControlParameters.Count - 1; i >= 0; i--)
131131
{
132132
var param = ControlParameters[i];
133133
cmdline = cmdline.Replace($"${i}", param.GetValue());

0 commit comments

Comments
 (0)