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 .();
|
ProcessStartInfo info = scope .();
|
||||||
SpawnedProcess process = scope .();
|
SpawnedProcess process = scope .();
|
||||||
|
|
||||||
|
if(!Directory.Exists({DepPath}) && Directory.CreateDirectory({DepPath }) case .Err)
|
||||||
info.SetWorkingDirectory(DepPath);
|
return .Err;
|
||||||
|
|
||||||
|
info.SetWorkingDirectory(scope $"{DepPath}");
|
||||||
info.SetFileNameAndArguments(scope $"git clone {pDep.Url} {pDep.Name}");
|
info.SetFileNameAndArguments(scope $"git clone {pDep.Url} {pDep.Name}");
|
||||||
|
|
||||||
if(process.Start(info) case .Err)
|
if(process.Start(info) case .Err)
|
||||||
|
@ -110,7 +112,8 @@ class Program
|
||||||
process = scope .();
|
process = scope .();
|
||||||
|
|
||||||
info.SetWorkingDirectory(scope $"{DepPath}/{pDep.Name}");
|
info.SetWorkingDirectory(scope $"{DepPath}/{pDep.Name}");
|
||||||
info.SetFileNameAndArguments(scope $"git checkout tags/{pDep.Tag}");
|
if(pDep.Tag != "-")
|
||||||
|
info.SetFileNameAndArguments(scope $"git checkout tags/{pDep.Tag}");
|
||||||
|
|
||||||
if(process.Start(info) case .Err)
|
if(process.Start(info) case .Err)
|
||||||
return .Err;
|
return .Err;
|
||||||
|
|
Reference in a new issue