Skip to content

Commit

Permalink
Add detection of debian versions 10,12 and 13 for ubuntu support
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-a-s committed Jan 10, 2024
1 parent aa704af commit 190723b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/_is_os_supported.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ function _is_os_supported {
# Store debian version in a variable
if command -v apt-get > /dev/null; then
debian_version=$(awk -F '.' '{print $1}' < /etc/debian_version)
[[ "$debian_version" == *"buster"* ]] && debian_version=10
[[ "$debian_version" == *"bullseye"* ]] && debian_version=11
[[ "$debian_version" == *"bookworm"* ]] && debian_version=12
[[ "$debian_version" == *"trixie"* ]] && debian_version=13
fi

# Give warning if OS is not supported
Expand Down

0 comments on commit 190723b

Please sign in to comment.