mirror of
https://github.com/Darkatse/TauriTavern.git
synced 2026-10-19 07:35:14 +00:00
fix(installer): support Debian rolling releases (#260)
This commit is contained in:
parent
7721f6ce4f
commit
3c791aee36
1 changed files with 8 additions and 4 deletions
|
|
@ -250,6 +250,7 @@ detect_system() {
|
|||
|
||||
ID=""
|
||||
VERSION_ID=""
|
||||
VERSION_CODENAME=""
|
||||
PRETTY_NAME=""
|
||||
# /etc/os-release is supplied by the operating system and is the canonical
|
||||
# distribution identity used by the supported package managers.
|
||||
|
|
@ -266,10 +267,13 @@ detect_system() {
|
|||
|
||||
case "$ID" in
|
||||
debian)
|
||||
[ -n "${VERSION_ID:-}" ] || die "Debian VERSION_ID is missing."
|
||||
numeric_version_parts "$VERSION_ID"
|
||||
[ "$VERSION_MAJOR" -ge 12 ] ||
|
||||
die "Debian $VERSION_ID is unsupported; Debian 12 or later is required."
|
||||
if [ -n "${VERSION_ID:-}" ]; then
|
||||
numeric_version_parts "$VERSION_ID"
|
||||
[ "$VERSION_MAJOR" -ge 12 ] ||
|
||||
die "Debian $VERSION_ID is unsupported; Debian 12 or later is required."
|
||||
else
|
||||
print_warning "Debian ${VERSION_CODENAME:-testing/unstable} does not report VERSION_ID; continuing as a rolling release."
|
||||
fi
|
||||
PACKAGE_SYSTEM="apt"
|
||||
;;
|
||||
ubuntu)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue