mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
Update check_version_is_older_than to accomodate arguments for any two versions.
This commit is contained in:
parent
9a6fafb33f
commit
185be1ef5a
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue