From 185be1ef5a6387b35001f870af94561dc2be1984 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Tue, 4 Mar 2025 13:15:40 -0500 Subject: [PATCH] Update check_version_is_older_than to accomodate arguments for any two versions. --- functions/checks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/checks.sh b/functions/checks.sh index 425fe69e..eaee11bd 100644 --- a/functions/checks.sh +++ b/functions/checks.sh @@ -107,8 +107,8 @@ check_version_is_older_than() { # The given version to check should be in normal RetroDECK version notation of N.N.Nb (eg. 0.8.0b) # USAGE: check_version_is_older_than "version" -local current_version="$version" -local new_version="$1" +local current_version="$1" +local new_version="$2" local is_newer_version="false" current_version_major_rev=$(sed 's/^\([0-9]*\)\..*/\1/' <<< "$current_version")