1
0
Fork 0

Handle empty build dir correctly

timestamps
dump_stack() 2023-05-01 14:53:52 +00:00
parent 249f11d059
commit 530b98e513
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,9 @@ func (cmd *DebugCmd) Run(g *Globals) (err error) {
// Copy all test files to the remote machine
for _, f := range ka.TestFiles {
if f.Local[0] != '/' {
f.Local = buildDir + "/" + f.Local
if res.BuildDir != "" {
f.Local = buildDir + "/" + f.Local
}
}
err = q.CopyFile(f.User, f.Local, f.Remote)
if err != nil {