diff --git a/devlib/target.py b/devlib/target.py index 490da9c..9e7ad0d 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -487,7 +487,7 @@ class Target(object): raise IOError('No usable temporary filename found') 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 def core_cpus(self, core):