installer fix for docker images (#9656)

* Add extra IO.console.console_mode check to progress_bar

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add i686 workaround for curl during installs

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* bump version

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add system curl check

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* fix logic

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2024-04-16 11:30:28 -04:00
committed by GitHub
parent 3111067eb9
commit 57a68748b5
3 changed files with 6 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ class ProgressBar
trap('WINCH') do
# reset width settings after terminal resized
# get terminal size, calculate the width of progress bar based on it
@terminal_h, @terminal_w = IO.console&.winsize == [0, 0] ? [25, 80] : IO.console&.winsize
@terminal_h, @terminal_w = !IO.console&.console_mode || IO.console&.winsize == [0, 0] ? [25, 80] : IO.console&.winsize
@bar_width = @terminal_w -
@info_before_bar.merge(@info_after_bar).values.sum - # space that all info blocks takes
(@info_before_bar.merge(@info_after_bar).length * 2) # space for separator (whitespaces) between each info