Update OS support

- Add Alpine Linux 3.23 and remove 3.21
This commit is contained in:
hwdsl2
2026-03-15 00:01:25 -05:00
parent 4bd24a89a9
commit d595913e65
2 changed files with 4 additions and 4 deletions

View File

@@ -123,8 +123,8 @@ EOF
esac
if [ "$os_type" = "alpine" ]; then
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
if [ "$os_ver" != "3.21" ] && [ "$os_ver" != "3.22" ]; then
exiterr "This script only supports Alpine Linux 3.21/3.22."
if [ "$os_ver" != "3.22" ] && [ "$os_ver" != "3.23" ]; then
exiterr "This script only supports Alpine Linux 3.22/3.23."
fi
else
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')

View File

@@ -70,8 +70,8 @@ check_os() {
;;
esac
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
if [ "$os_ver" != "3.21" ] && [ "$os_ver" != "3.22" ]; then
exiterr "This script only supports Alpine Linux 3.21/3.22."
if [ "$os_ver" != "3.22" ] && [ "$os_ver" != "3.23" ]; then
exiterr "This script only supports Alpine Linux 3.22/3.23."
fi
}