Skip to content

Commit be534cf

Browse files
authoredOct 11, 2023
Merge pull request dotless-de#436 from kubasov-s/installed-test
Fix unreliable test of installed guest additions
2 parents f904889 + 46b09dc commit be534cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎lib/vagrant-vbguest/installers/linux.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ def running?(opts=nil, &block)
7777
kmods = nil
7878
communicate.sudo('cat /proc/modules', opts) do |type, data|
7979
block.call(type, data) if block
80-
kmods = data if type == :stdout && data
80+
if type == :stdout && data
81+
kmods = kmods.nil? ? data : kmods + data
82+
end
8183
end
8284

8385
unless kmods

0 commit comments

Comments
 (0)