Permalink
Browse files

set environment variables using ENV

  • Loading branch information...
1 parent 1a8b6fc commit a30443f6587d9beafd96988a1c9d58c5b849025f @tmm1 committed with defunkt Feb 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cijoe.rb
View
4 lib/cijoe.rb
@@ -162,8 +162,8 @@ def run_hook(hook)
else
{}
end
- env = data.collect { |k, v| %(#{k}=#{v.inspect}) }.join(" ")
- `#{env} sh #{file}`
+ data.each{ |k, v| ENV[k] = v }
+ `sh #{file}`
end
end

0 comments on commit a30443f

Please sign in to comment.