Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1058)

Unified Diff: go/env.py

Issue 2089403002: infra/go: Stop extra evaluation of env.py output. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/env.py
diff --git a/go/env.py b/go/env.py
index ec1e2cb47230b95946e5829d1d2e171a9c46e450..71fe12a6ee399c403aa5934ef245124366a8f57e 100755
--- a/go/env.py
+++ b/go/env.py
@@ -18,6 +18,7 @@ assert __name__ == '__main__'
import imp
import os
+import pipes
import subprocess
import sys
@@ -31,7 +32,7 @@ new = bootstrap.prepare_go_environ()
if len(sys.argv) == 1:
for key, value in sorted(new.iteritems()):
if old.get(key) != value:
- print 'export %s="%s"' % (key, value)
+ print 'export %s=%s' % (key, pipes.quote(value))
else:
exe = sys.argv[1]
if exe == 'python':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698