From 13eb306cb59709fe39cd271edcc1480795665a60 Mon Sep 17 00:00:00 2001 From: Simon White <69164084+houbsta@users.noreply.github.com> Date: Tue, 28 Nov 2023 23:37:39 +0100 Subject: [PATCH] Include separate compare for MAJOR and MINOR as it should be Co-authored-by: Peter L Jones --- linux/setup_repo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/setup_repo.sh b/linux/setup_repo.sh index 6a486f7f7f..f701f19656 100755 --- a/linux/setup_repo.sh +++ b/linux/setup_repo.sh @@ -18,7 +18,7 @@ else exit 1 fi -if (($(echo "${APT_MAJOR}.${APT_MINOR} < 2.2" | bc -l))); then +if [[ ${APT_MAJOR} -lt 2 || ( ${APT_MAJOR} -eq 2 && ${APT_MINOR} -lt 2 ) ]]; then echo "Your apt version is incompatible. You may not be able install this repository. " echo "See: https://github.com/orgs/jamulussoftware/discussions/3180" echo "Also of interest: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1950095"