Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildpack-env-arg fixes #219

Merged
merged 3 commits into from
Feb 5, 2014
Merged

buildpack-env-arg fixes #219

merged 3 commits into from
Feb 5, 2014

Conversation

hone
Copy link
Member

@hone hone commented Jan 30, 2014

Right now, we just read ENV stuff from the actual environment which only works for user-env-compile, this reads BUNDLE_WITHOUT from both user-env-compile and buildpack-env-arg.

This also escapes the env vars when passing them through, so you can have spaces and other characters as values.

@@ -85,7 +84,7 @@ def pipe(command, options = {})
options[:out] ||= "2>&1"
options[:env] ||= {}
options[:env] = user_env_hash.merge(options[:env]) if options[:user_env]
env = options[:env].map {|key, value| "#{key}=#{value}"}.join(" ")
env = options[:env].map {|key, value| "#{key}=\"#{value}\""}.join(" ")

This comment was marked as resolved.

This comment was marked as resolved.

@schneems
Copy link
Contributor

schneems commented Feb 4, 2014

Good idea

schneems added a commit that referenced this pull request Feb 5, 2014
buildpack-env-arg fixes
@schneems schneems merged commit d659cb8 into master Feb 5, 2014
@edmorley edmorley deleted the ponies branch August 27, 2020 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants