Land #5504, handle cases where the script may be empty
commit
edcd1e3bf9
|
@ -37,7 +37,7 @@ module Powershell
|
|||
|
||||
begin
|
||||
# Open code file for reading
|
||||
fd = ::File.new(code, 'rb')
|
||||
fd = ::File.new(code || '', 'rb')
|
||||
while (line = fd.gets)
|
||||
@code << line
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue