Commit 9686ada9 authored by rgaudin's avatar rgaudin
Browse files

Fixed #265: escaping required for etcher call on macOS (oascript)

parent 9965ec86
2.0-rc16
* fixed etcher-cli call on macOS GUI (space escaping)
2.0-rc15
* Fixed concurrent access error on Windows
* Replaced diskpart step with clean MBR flashing
......
......@@ -4,6 +4,7 @@
import os
import sys
import time
import shlex
import signal
import ctypes
import tempfile
......@@ -327,6 +328,11 @@ def get_etcher_command(image_fpath, device_fpath, logger):
device_fpath,
image_fpath,
]
# escape etcher-cli and image paths on OSX (to accomodate oascript)
if sys.platform == "darwin":
cmd[0] = shlex.quote(cmd[0])
cmd[-1] = shlex.quote(cmd[-1])
# handle sudo or GUI alternative for linux and macOS
if sys.platform in ("linux", "darwin"):
cmd = get_admin_command(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment