Update OS check

- Add a check for Debian 13, which is not currently supported.
This commit is contained in:
hwdsl2
2025-08-15 08:29:38 -05:00
parent 7895311685
commit 4612cce33b
2 changed files with 14 additions and 0 deletions

View File

@@ -57,6 +57,13 @@ check_os() {
;;
esac
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
if [ "$os_ver" = 13 ]; then
cat 1>&2 <<EOF
Error: This script does not currently support Debian 13.
You may use e.g. Debian 12 instead.
EOF
exit 1
fi
if [ "$os_ver" = 8 ] || [ "$os_ver" = 9 ] || [ "$os_ver" = "stretchsid" ] \
|| [ "$os_ver" = "bustersid" ]; then
cat 1>&2 <<EOF