From 0b1f8b5c6c645cc3fa6fc53e518046a13d78220f Mon Sep 17 00:00:00 2001 From: oddlama Date: Sat, 29 May 2021 22:16:05 +0200 Subject: [PATCH] Skip install question if every required program is installed --- scripts/utils.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/utils.sh b/scripts/utils.sh index 96b229e..e0042f0 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -329,6 +329,9 @@ function check_has_programs() { || failed+=("$program") done + [[ ${#failed[@]} -eq 0 ]] \ + && return + echo "The following programs are required for the installer to work, but are currently missing on your system:" >&2 echo " ${failed[@]}" >&2