Skip to content

Commit 3cd797a

Browse files
committed
Don't bail out if trying to upload external binary
No functional modification for standard flow (compile+upload without -i flag)
1 parent 0031c6d commit 3cd797a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: commands/upload/upload.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ func run(command *cobra.Command, args []string) {
208208

209209
uploadProperties.SetPath("build.path", importPath)
210210
uploadProperties.Set("build.project_name", importFile)
211-
if _, err := os.Stat(filepath.Join(sketch.FullPath, importFile+ext)); err != nil {
211+
212+
if _, err := os.Stat(filepath.Join(importPath.String(), importFile+ext)); err != nil {
212213
if os.IsNotExist(err) {
213214
formatter.PrintErrorMessage("Compiled sketch not found. Please compile first.")
214215
} else {

0 commit comments

Comments
 (0)