Skip to content

Commit

Permalink
Fix nil env name conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
crohr committed May 30, 2024
1 parent db846fc commit aba85d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pkgr/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ def create_env_hash_from_string

variables.inject({}) do |h, var|
name, value = var.split('=', 2)
next if name.nil?
h[name.strip] = EnvValue.new(value || "").strip.unquote
unless name.nil?
h[name.strip] = EnvValue.new(value || "").strip.unquote
end
h
end
end
Expand Down

0 comments on commit aba85d7

Please sign in to comment.