path fixes
This commit is contained in:
parent
40d45a89d8
commit
51f7d47e92
1 changed files with 6 additions and 3 deletions
|
@ -89,8 +89,10 @@ class Program
|
|||
ProcessStartInfo info = scope .();
|
||||
SpawnedProcess process = scope .();
|
||||
|
||||
if(!Directory.Exists({DepPath}) && Directory.CreateDirectory({DepPath }) case .Err)
|
||||
return .Err;
|
||||
|
||||
info.SetWorkingDirectory(DepPath);
|
||||
info.SetWorkingDirectory(scope $"{DepPath}");
|
||||
info.SetFileNameAndArguments(scope $"git clone {pDep.Url} {pDep.Name}");
|
||||
|
||||
if(process.Start(info) case .Err)
|
||||
|
@ -110,6 +112,7 @@ class Program
|
|||
process = scope .();
|
||||
|
||||
info.SetWorkingDirectory(scope $"{DepPath}/{pDep.Name}");
|
||||
if(pDep.Tag != "-")
|
||||
info.SetFileNameAndArguments(scope $"git checkout tags/{pDep.Tag}");
|
||||
|
||||
if(process.Start(info) case .Err)
|
||||
|
|
Reference in a new issue