Skip to content

Commit

Permalink
Fix for empty env string
Browse files Browse the repository at this point in the history
  • Loading branch information
crohr committed May 30, 2024
1 parent f9854de commit db846fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pkgr/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ 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
h
end
Expand Down

0 comments on commit db846fc

Please sign in to comment.