diff options
author | Rob Austein <sra@hactrn.net> | 2016-07-16 19:24:40 +0200 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-07-16 19:24:40 +0200 |
commit | 91cc61352451093e26605f4a9bbe83798da02fd0 (patch) | |
tree | 3d57ee0373f8627d917c51bfd9d9631551e1e545 /projects/hsm/cryptech_probe | |
parent | ab32270b0a9beae744597e2a3746bd3d49aaee89 (diff) |
Don't run empty "export" command.
Diffstat (limited to 'projects/hsm/cryptech_probe')
-rwxr-xr-x | projects/hsm/cryptech_probe | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/projects/hsm/cryptech_probe b/projects/hsm/cryptech_probe index 14dae01..ccee40a 100755 --- a/projects/hsm/cryptech_probe +++ b/projects/hsm/cryptech_probe @@ -142,4 +142,6 @@ for port in ports: tty.close() -sys.stdout.write("export {}\n".format(" ".join("{}='{}'".format(var, env[var]) for var in sorted(env)))) +if env: + sys.stdout.write("export {}\n".format( + " ".join("{}='{}'".format(var, env[var]) for var in sorted(env)))) |