We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55ea798 commit 779371bCopy full SHA for 779371b
gh-notify
@@ -627,6 +627,10 @@ check_version() {
627
IFS='.' read -ra threshold_parts <<<"$threshold"
628
629
for i in "${!threshold_parts[@]}"; do
630
+ # If the threshold's last part is 0 and version has one less parts, it's ok
631
+ if (( i == ${#threshold_parts[@]} - 1 )) && ((${#ver_parts[@]} == ${#threshold_parts[@]} - 1)) && ((${threshold_parts[i]} == 0)); then
632
+ break
633
+ fi
634
if ((i >= ${#ver_parts[@]})) || ((ver_parts[i] < threshold_parts[i])); then
635
$on_error "Your '$tool' version '$user_version' is insufficient. The minimum required version is '$threshold'."
636
elif ((ver_parts[i] > threshold_parts[i])); then
0 commit comments