Skip to content

Commit 50befc4

Browse files
authored
udisks v2.9.0 dropped the trailing period for "udisksctl mount". (#516)
1 parent 5304383 commit 50befc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/uf2conv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def error(msg):
380380
proc_out = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
381381
if proc_out.returncode == 0:
382382
stdoutput = proc_out.stdout.decode("UTF-8")
383-
match = re.search(r'Mounted\s+.*\s+at\s+([^\.]*)', stdoutput)
383+
match = re.search(r'Mounted\s+.*\s+at\s+([^\.\r\n]*)', stdoutput)
384384
if match is None:
385385
print("Warn: {} did not print mount point. Attempting to locate mounted drive in file system. StdOut={}".format(cmd[0], stdoutput))
386386
drives = get_drives()

0 commit comments

Comments
 (0)