Skip to content

Commit 909ffa2

Browse files
author
vinay-lanka
committed
update compile --build-path to support both relative and absolute flags
1 parent b8f82ce commit 909ffa2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: cli/compile/compile.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package compile
1818
import (
1919
"context"
2020
"os"
21-
"fmt"
2221

2322
"github.com/arduino/arduino-cli/cli/feedback"
2423

@@ -102,11 +101,10 @@ func run(cmd *cobra.Command, args []string) {
102101
}
103102

104103
sketchPath := initSketchPath(path)
105-
fmt.Println("FLAG LMAO")
106-
fmt.Println(buildPath)
104+
107105
if string(buildPath) != "/" {
108106
buildPath = args[0]
109-
}
107+
}
110108
_, err = compile.Compile(context.Background(), &rpc.CompileReq{
111109
Instance: inst,
112110
Fqbn: fqbn,

0 commit comments

Comments
 (0)