Skip to content

Commit

Permalink
Use shell escape for the sdk root
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Mar 17, 2023
1 parent be66016 commit 46867e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build/builders/efr32.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ def __init__(self,
if "GSDK_ROOT" in os.environ:
# EFR32 SDK is very large. If the SDK path is already known (the
# case for pre-installed images), use it directly.
self.extra_gn_options.append(f"efr32_sdk_root=\"{os.environ['GSDK_ROOT']}\"")
sdk_path=shlex.quote(os.environ['GSDK_ROOT'])
self.extra_gn_options.append(f"efr32_sdk_root=\"{sdk_path}\"")

def GnBuildArgs(self):
return self.extra_gn_options
Expand Down

0 comments on commit 46867e0

Please sign in to comment.