From f47b588b91113836f312be303e298d3de0284b98 Mon Sep 17 00:00:00 2001 From: syeopite Date: Sat, 11 Sep 2021 22:23:19 -0700 Subject: [PATCH] Print message when VideoJS deps are satisfied --- scripts/fetch-videojs-dependencies.cr | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/fetch-videojs-dependencies.cr b/scripts/fetch-videojs-dependencies.cr index cd94b214..ba9722f8 100644 --- a/scripts/fetch-videojs-dependencies.cr +++ b/scripts/fetch-videojs-dependencies.cr @@ -143,10 +143,14 @@ dependencies_to_install.each do |dep| end end -puts "#{"Resolving".colorize(:green)} #{"VideoJS".colorize(:blue)} dependencies" -dependencies_to_install.size.times do - result = channel.receive - puts "#{"Fetched".colorize(:green)} #{result.colorize(:blue)}" +if dependencies_to_install.empty? + puts "#{"VideoJS".colorize(:blue)} #{"dependencies".colorize(:green)} are satisfied" +else + puts "#{"Resolving".colorize(:green)} #{"VideoJS".colorize(:blue)} dependencies" + dependencies_to_install.size.times do + result = channel.receive + puts "#{"Fetched".colorize(:green)} #{result.colorize(:blue)}" + end end # Cleanup