From 3c7a21fd6acbeff07617f8de6878add21880b2c5 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Wed, 11 Dec 2024 08:44:22 +0100 Subject: [PATCH] fix: simplify `check_tool_requirements` --- src/usr/local/containerbase/utils/v2/defaults.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/usr/local/containerbase/utils/v2/defaults.sh b/src/usr/local/containerbase/utils/v2/defaults.sh index 78b615080..cb56429b4 100644 --- a/src/usr/local/containerbase/utils/v2/defaults.sh +++ b/src/usr/local/containerbase/utils/v2/defaults.sh @@ -8,11 +8,7 @@ # Is used to check if all requirements are met to install the tool function check_tool_requirements () { # Sensitive default that can be overwritten by tools if needed - check_semver "${TOOL_VERSION}" - if [[ ! "${MAJOR}" || ! "${MINOR}" || ! "${PATCH}" ]]; then - echo Invalid version: "${TOOL_VERSION}" - exit 1 - fi + check_semver "${TOOL_VERSION}" all } # Is used to check if the tool has already been installed in the given version