aboutsummaryrefslogtreecommitdiff
path: root/projects/hsm
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-07-16 19:24:40 +0200
committerRob Austein <sra@hactrn.net>2016-07-16 19:24:40 +0200
commit91cc61352451093e26605f4a9bbe83798da02fd0 (patch)
tree3d57ee0373f8627d917c51bfd9d9631551e1e545 /projects/hsm
parentab32270b0a9beae744597e2a3746bd3d49aaee89 (diff)
Don't run empty "export" command.
Diffstat (limited to 'projects/hsm')
-rwxr-xr-xprojects/hsm/cryptech_probe4
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))))