[Cryptech-Commits] [sw/stm32] branch master updated: Don't run empty "export" command.

git at cryptech.is git at cryptech.is
Sat Jul 16 17:31:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository sw/stm32.

The following commit(s) were added to refs/heads/master by this push:
       new  91cc613   Don't run empty "export" command.
91cc613 is described below

commit 91cc61352451093e26605f4a9bbe83798da02fd0
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Sat Jul 16 19:24:40 2016 +0200

    Don't run empty "export" command.
---
 projects/hsm/cryptech_probe | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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))))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list