1
0
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:
douglas-raillard-arm 2020-06-18 11:26:58 +01:00 committed by Marc Bonnici
parent 0c72763d2a
commit bef1ec3afc

View File

@ -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):