From bef1ec3afca40fbef3fea5a7a01156b89bf9db85 Mon Sep 17 00:00:00 2001 From: douglas-raillard-arm Date: Thu, 18 Jun 2020 11:26:58 +0100 Subject: [PATCH] target: Add option delimiter to rm command Use a lone -- to make sure to not treat paths as options. --- devlib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index 2ca4871..ac92dc9 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -628,7 +628,7 @@ class Target(object): raise IOError('No usable temporary filename found') 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 def core_cpus(self, core):