From 592bbdc5a4af61b2db3209421d0bc3d496e6b032 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Fri, 14 Dec 2018 11:02:05 +0100 Subject: [PATCH] Don't bail out if trying to upload external binary No functional modification for standard flow (compile+upload without -i flag) --- commands/upload/upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/upload/upload.go b/commands/upload/upload.go index 16f1e64bb58..a4704f8dad6 100644 --- a/commands/upload/upload.go +++ b/commands/upload/upload.go @@ -208,7 +208,7 @@ func run(command *cobra.Command, args []string) { uploadProperties.SetPath("build.path", importPath) uploadProperties.Set("build.project_name", importFile) - if _, err := sketch.FullPath.Join(importFile + ext).Stat(); err != nil { + if _, err := importPath.Join(importFile + ext).Stat(); err != nil { if os.IsNotExist(err) { formatter.PrintErrorMessage("Compiled sketch not found. Please compile first.") } else {