Fix unix env. var addition issue when the variables may have elements with spaces in them.

This commit is contained in:
Jukka Jylänki
2014-11-19 17:26:38 +02:00
parent ef541f8ed9
commit 9feba75928

2
emsdk
View File

@@ -1138,7 +1138,7 @@ def construct_env_unix(tools_to_activate):
if len(env_vars_to_add) > 0:
print 'Setting environment variables:'
for key, value in env_vars_to_add:
env_string += 'export ' + key + '=' + value + '\n'
env_string += 'export ' + key + '="' + value + '"\n'
print key + ' = ' + value
print ''
return env_string