Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (19 sloc) 0.448 kb
#!/usr/bin/env ruby
require "yaml"
release = YAML.load(STDIN.read) || {}
vars = release["config_vars"] || {}
vars.each do |key, value|
case key
when "PATH"
# add HOME to relative PATHs
value = value.split(':').map do |part|
case part[0..0]
when "/" then part
else "$HOME/#{part}"
end
end.join(":")
puts %{export #{key}="#{value}"}
else
puts %{export #{key}=${#{key}:-#{value}}}
end
end
Jump to Line
Something went wrong with that request. Please try again.