From 530b98e513bcdc67254eb80690966a1591e3eb5a Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Mon, 1 May 2023 14:53:52 +0000 Subject: [PATCH] Handle empty build dir correctly --- debug.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debug.go b/debug.go index e636fa2..21f0338 100644 --- a/debug.go +++ b/debug.go @@ -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 {