utils/curl: fix false flag handling
This commit is contained in:
parent
373b0da4d5
commit
c6cddacc5e
@ -305,7 +305,7 @@ module Utils
|
|||||||
file = Tempfile.new.tap(&:close)
|
file = Tempfile.new.tap(&:close)
|
||||||
|
|
||||||
specs = specs.flat_map do |option, argument|
|
specs = specs.flat_map do |option, argument|
|
||||||
next if argument == false # No flag.
|
next [] if argument == false # No flag.
|
||||||
|
|
||||||
args = ["--#{option.to_s.tr("_", "-")}"]
|
args = ["--#{option.to_s.tr("_", "-")}"]
|
||||||
args << argument unless argument == true # It's a flag.
|
args << argument unless argument == true # It's a flag.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user