Commit 383f7553 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

MNT: de-lint

parent 60e7391e
......@@ -24,7 +24,7 @@ import sys
import shlex
import pathlib
from typing import Union, Optional, List, Sequence, Callable
from typing import Union, Optional, List, Callable
from fsl.add_module.messages import error
......@@ -54,7 +54,7 @@ def runAsAdmin(routine : str, *argv : str):
thismod = op.abspath(__file__)
argv = ['sudo', command, thismod] + [routine] + list(argv)
argv = [shlex.quote(a) for a in argv]
result =' '.join(argv), shell=True)
result =' '.join(argv), shell=True, check=False)
if result.returncode != 0:
error(f'Admin call failed: {argv}', wrap=False)
Supports Markdown
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