From 688d84400d2b9fa3dae4b7aa020cb924d4c487fe Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Thu, 6 Jun 2024 10:33:51 -0400 Subject: [PATCH] simplify the compare_semver install function Co-authored-by: Dominique Martinet --- install.sh | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/install.sh b/install.sh index 962029cba03e..c7c0d6b2685c 100755 --- a/install.sh +++ b/install.sh @@ -693,36 +693,11 @@ install_asset() ( # Note: pre-release (-) and metadata (+) are not supported. compare_semver() { # remove leading 'v' if present - version1=$(echo "$1" | sed 's/^v//') - version2=$(echo "$2" | sed 's/^v//') - - IFS=. read -r major1 minor1 patch1 </dev/null } prep_signature_verification() {