support debian 12

This commit is contained in:
SoftFever 2024-04-21 18:51:24 +08:00
parent 72029df558
commit 1807f21a34
2 changed files with 5 additions and 0 deletions

View file

@ -79,6 +79,11 @@ then
fi fi
DISTRIBUTION=$(awk -F= '/^ID=/ {print $2}' /etc/os-release) DISTRIBUTION=$(awk -F= '/^ID=/ {print $2}' /etc/os-release)
# treat ubuntu as debian
if [ "${DISTRIBUTION}" == "ubuntu" ]
then
DISTRIBUTION="debian"
fi
if [ ! -f ./linux.d/${DISTRIBUTION} ] if [ ! -f ./linux.d/${DISTRIBUTION} ]
then then
echo "Your distribution does not appear to be currently supported by these build scripts" echo "Your distribution does not appear to be currently supported by these build scripts"