Skip to content

Commit 36a350f

Browse files
authored
Merge pull request #322 from arduino/runtime-platform-path-fix-win
[WE-205] sanitize paths when replacing {runtime.platform.path}
2 parents cf149fa + bcce628 commit 36a350f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upload/upload.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func PartiallyResolve(board, file, platformPath, commandline string, extra Extra
5555
commandline = strings.Replace(commandline, "{build.path}", filepath.ToSlash(filepath.Dir(file)), -1)
5656
commandline = strings.Replace(commandline, "{build.project_name}", strings.TrimSuffix(filepath.Base(file), filepath.Ext(filepath.Base(file))), -1)
5757
commandline = strings.Replace(commandline, "{network.password}", extra.Auth.Password, -1)
58-
commandline = strings.Replace(commandline, "{runtime.platform.path}", platformPath, -1)
58+
commandline = strings.Replace(commandline, "{runtime.platform.path}", filepath.ToSlash(platformPath), -1)
5959

6060
if extra.Verbose == true {
6161
commandline = strings.Replace(commandline, "{upload.verbose}", extra.ParamsVerbose, -1)

0 commit comments

Comments
 (0)