Skip to content

Commit

Permalink
fix: simplify check_tool_requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Dec 11, 2024
1 parent 322b26d commit 3c7a21f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/usr/local/containerbase/utils/v2/defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c7a21f

Please sign in to comment.