[ruby/resolv] quote registry value name properly
'NV Domain' needs to be quoted. https://github.com/ruby/resolv/commit/332a16dcc0
This commit is contained in:
parent
b4f74e24d9
commit
0db1f47ad0
@ -134,7 +134,7 @@ module Win32
|
||||
""
|
||||
end
|
||||
else
|
||||
cmd = "Get-ItemProperty -Path 'HKLM:\\#{path}' -Name '#{name}' -ErrorAction SilentlyContinue | Select-Object -ExpandProperty #{name}"
|
||||
cmd = "Get-ItemProperty -Path 'HKLM:\\#{path}' -Name '#{name}' -ErrorAction SilentlyContinue | Select-Object -ExpandProperty '#{name}'"
|
||||
output, _ = Open3.capture2('powershell', '-Command', cmd)
|
||||
output.strip
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user