1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 02:40:50 +01:00

target: Fix quoting of PATH components

Make sure the components of PATH are properly quoted.
This commit is contained in:
Douglas RAILLARD 2019-09-03 14:26:13 +01:00 committed by Marc Bonnici
parent aa62a52ee3
commit 74edfcbe43

View File

@ -396,7 +396,7 @@ class Target(object):
# Ensure to use deployed command when availables
if self.executables_directory:
command = "export PATH={}:$PATH && {}".format(self.executables_directory, command)
command = "export PATH={}:$PATH && {}".format(quote(self.executables_directory), command)
return self.conn.execute(command, timeout=timeout,
check_exit_code=check_exit_code, as_root=as_root,