Skip to content

Commit ea0f01a

Browse files
authored
Fixing chmod argument on Linux when launching esptool (#139)
1 parent 4db4a9a commit ea0f01a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nanoFirmwareFlasher/EspTool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ private bool RunEspTool(
580580
appDir = Path.Combine(Program.ExecutingPath, "esptool", "esptoolLinux");
581581
Process espToolExex = new Process();
582582
// Making sure the esptool is executable
583-
espToolExex.StartInfo = new ProcessStartInfo("chmod +x", Path.Combine(appDir, appName))
583+
espToolExex.StartInfo = new ProcessStartInfo("chmod", $"+x {Path.Combine(appDir, appName)}")
584584
{
585585
WorkingDirectory = appDir,
586586
UseShellExecute = false,

0 commit comments

Comments
 (0)