We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8395efd commit 9144daeCopy full SHA for 9144dae
1 file changed
src/ViewModels/ExecuteCustomAction.cs
@@ -210,7 +210,8 @@ private void PrepareControlParameters()
210
211
private string PrepareStringByTarget(string org)
212
{
213
- org = org.Replace("${REPO}", GetWorkdir());
+ var repoPath = OperatingSystem.IsWindows() ? _repo.FullPath.Replace("/", "\\") : _repo.FullPath;
214
+ org = org.Replace("${REPO}", repoPath);
215
216
return Target switch
217
@@ -223,11 +224,6 @@ private string PrepareStringByTarget(string org)
223
224
};
225
}
226
- private string GetWorkdir()
227
- {
228
- return OperatingSystem.IsWindows() ? _repo.FullPath.Replace("/", "\\") : _repo.FullPath;
229
- }
230
-
231
private void Run(string args)
232
233
var start = new ProcessStartInfo();
0 commit comments