support EndeavourOS

EndeavourOS uses quotes in its /etc/release for some reason
This commit is contained in:
Alex Bates 2024-01-30 22:28:27 +00:00 committed by GitHub
parent 66c781c68f
commit 6710c93baf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,7 +99,7 @@ if cat /etc/os-release | grep -E ID=fedora &> /dev/null; then
fi
# Arch Linux and derivatives (pacman)
if cat /etc/os-release | grep -E 'ID=arch|ID_LIKE=arch' &> /dev/null; then
if cat /etc/os-release | grep -E 'ID=arch|ID_LIKE="?arch"?' &> /dev/null; then
supported=true
echo "Installing packages for Arch Linux or derivative (pacman)"