1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 10:10:46 +00:00

Target: Ensures path is quoted and escaped

This commit is contained in:
Marc Bonnici 2017-11-13 15:08:03 +00:00
parent 0390c9d26b
commit 899dbfe4fb

View File

@ -487,7 +487,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(path), as_root=as_root) self.execute('rm -rf "{}"'.format(escape_double_quotes(path)), as_root=as_root)
# misc # misc
def core_cpus(self, core): def core_cpus(self, core):