From ec7a6785d970657c9b4642af9edd7d199fbddc9f Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sun, 26 Dec 2021 23:35:24 +0100 Subject: [PATCH] ignore SNAPSHOT when comparing number --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index 9938fd7a..50a07309 100755 --- a/install +++ b/install @@ -88,7 +88,7 @@ case "$(uname -m)" in esac # Ugly ugly conversion of version to a comparable number -IFS='.' read -ra VER <<< "$version" +IFS='.' read -ra VER <<< "${version//-SNAPSHOT/}" vernum=$(printf "%03d%03d%03d" "${VER[0]}" "${VER[1]}" "${VER[2]}") if [[ 10#$vernum -le 10#000002013 ]]; then