mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
target: Add option delimiter to rm command
Use a lone -- to make sure to not treat paths as options.
This commit is contained in:
parent
0c72763d2a
commit
bef1ec3afc
@ -628,7 +628,7 @@ class Target(object):
|
|||||||
raise IOError('No usable temporary filename found')
|
raise IOError('No usable temporary filename found')
|
||||||
|
|
||||||
def remove(self, path, as_root=False):
|
def remove(self, path, as_root=False):
|
||||||
self.execute('rm -rf {}'.format(quote(path)), as_root=as_root)
|
self.execute('rm -rf -- {}'.format(quote(path)), as_root=as_root)
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
def core_cpus(self, core):
|
def core_cpus(self, core):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user