Skip to content

Commit b31495b

Browse files
committed
fix: wrong pattern to fill input control's value to custom action commandline arguments (#1467)
Signed-off-by: leo <[email protected]>
1 parent 0729c30 commit b31495b

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
@@ -132,7 +132,7 @@ public override Task<bool> Sure()
132132
for (var i = ControlParameters.Count - 1; i >= 0; i--)
133133
{
134134
var param = ControlParameters[i];
135-
cmdline = cmdline.Replace($"${i}", param.GetValue());
135+
cmdline = cmdline.Replace($"${i+1}", param.GetValue());
136136
}
137137

138138
var log = _repo.CreateLog(CustomAction.Name);

0 commit comments

Comments
 (0)