Skip to content

Commit

Permalink
Include separate compare for MAJOR and MINOR
Browse files Browse the repository at this point in the history
as it should be

Co-authored-by: Peter L Jones <[email protected]>
  • Loading branch information
houbsta and pljones authored Nov 28, 2023
1 parent 3cd1140 commit 13eb306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/setup_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 13eb306

Please sign in to comment.