Skip to content

Commit

Permalink
Make rvm_use definition more robust by ignoring empty lines. Closes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenvandijk committed May 25, 2010
1 parent 31797b9 commit 9a6ddc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/rvm/definitions/rvm_use.rb
Expand Up @@ -14,7 +14,7 @@
}.gsub("\n", '')) do |p,i,o,e|
o.each_line do |line|
env_bits = line.strip.split("=")
ENV[env_bits[0]] = env_bits[1]
ENV[env_bits[0]] = env_bits[1] if env_bits.size == 2
end
end

Expand Down

0 comments on commit 9a6ddc5

Please sign in to comment.