Skip to content

Commit d8a90e5

Browse files
committed
Added escaping to environmental variables
1 parent c5586c9 commit d8a90e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

prt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
SSH_HOST_RE = re.compile(r'ssh +([^@]+)@([^ ]+)')
9494

9595
__author__ = "Weston Nielson <wnielson@github>"
96-
__version__ = "0.3.3"
96+
__version__ = "0.3.4"
9797

9898

9999
def get_config():
@@ -237,7 +237,7 @@ def overwrite_transcoder_after_upgrade():
237237
def build_env(host=None):
238238
# TODO: This really should be done in a way that is specific to the target
239239
# in the case that the target is a different architecture than the host
240-
envs = ["export %s=%s" % (k, v) for k,v in os.environ.items()]
240+
envs = ["export %s=%s" % (k, pipes.quote(v)) for k,v in os.environ.items()]
241241
envs.append("export PRT_ID=%s" % uuid.uuid1().hex)
242242
return ";".join(envs)
243243

0 commit comments

Comments
 (0)