Skip to content

Commit 1bbd7da

Browse files
committed
fix crash on Windows while launching programmer
1 parent d32570e commit 1bbd7da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

programmer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,13 @@ func spHandlerProgram(flasher string, cmdString []string) {
210210

211211
extension := ""
212212
if runtime.GOOS == "windows" {
213-
tellCommandNotToSpawnShell(oscmd)
214213
extension = ".exe"
215214
}
216215

217216
oscmd = exec.Command(flasher+extension, cmdString...)
218217

218+
tellCommandNotToSpawnShell(oscmd)
219+
219220
stdout, err := oscmd.StdoutPipe()
220221
if err != nil {
221222
return

0 commit comments

Comments
 (0)