From a960f6cbfc01596603e9b4045b60323d4c8fbb36 Mon Sep 17 00:00:00 2001 From: Matteo Suppo Date: Mon, 29 Jan 2018 12:46:55 +0100 Subject: [PATCH] Replace info in commandline about password Signed-off-by: Matteo Suppo --- upload/upload.go | 1 + 1 file changed, 1 insertion(+) diff --git a/upload/upload.go b/upload/upload.go index b70727542..6c0563408 100644 --- a/upload/upload.go +++ b/upload/upload.go @@ -54,6 +54,7 @@ type Extra struct { func PartiallyResolve(board, file, commandline string, extra Extra, t Locater) (string, error) { commandline = strings.Replace(commandline, "{build.path}", filepath.ToSlash(filepath.Dir(file)), -1) commandline = strings.Replace(commandline, "{build.project_name}", strings.TrimSuffix(filepath.Base(file), filepath.Ext(filepath.Base(file))), -1) + commandline = strings.Replace(commandline, "{network.password}", extra.Auth.Password, -1) if extra.Verbose == true { commandline = strings.Replace(commandline, "{upload.verbose}", extra.ParamsVerbose, -1)