Fix importing progress status check
This commit is contained in:
parent
73b31b5a3b
commit
b0e6085c0b
|
@ -173,6 +173,7 @@ module Vagrant
|
|||
# The progress of the import will be in the last line. Do a greedy
|
||||
# regular expression to find what we're looking for.
|
||||
if current = lines.last[/.+(\d{2})%/, 1]
|
||||
current = current.to_i
|
||||
if current > last
|
||||
last = current
|
||||
yield current if block_given?
|
||||
|
|
|
@ -173,6 +173,7 @@ module Vagrant
|
|||
# The progress of the import will be in the last line. Do a greedy
|
||||
# regular expression to find what we're looking for.
|
||||
if current = lines.last[/.+(\d{2})%/, 1]
|
||||
current = current.to_i
|
||||
if current > last
|
||||
last = current
|
||||
yield current if block_given?
|
||||
|
|
Loading…
Reference in New Issue