path fixes

This commit is contained in:
Booklordofthedings 2024-09-18 08:23:15 +02:00
parent 40d45a89d8
commit 51f7d47e92

View file

@ -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;