Merge pull request #330 from Karunamon/patch-1

Quote PATH when writing agent invocation script
This commit is contained in:
Roman Zeyde
2020-05-17 15:28:16 +03:00
committed by GitHub

View File

@@ -143,7 +143,7 @@ def run_init(device_type, args):
# Prepare GPG agent invocation script (to pass the PATH from environment). # Prepare GPG agent invocation script (to pass the PATH from environment).
with open(os.path.join(homedir, 'run-agent.sh'), 'w') as f: with open(os.path.join(homedir, 'run-agent.sh'), 'w') as f:
f.write(r"""#!/bin/sh f.write(r"""#!/bin/sh
export PATH={0} export PATH="{0}"
{1} \ {1} \
-vv \ -vv \
--pin-entry-binary={pin_entry_binary} \ --pin-entry-binary={pin_entry_binary} \