aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))))