packages: dependencies: fix is_base_distro argument

This was broken from the start in the commit
fe28bc3c82 ("dependencies: move into
single package.").

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2023-12-09 18:00:38 +01:00 committed by Adrien 'neox' Bourmault
parent a3b5f5dc7b
commit e1b48e7436
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ usage()
is_base_distro()
{
distro="$1"
grep "ID=${distro}" /etc/os-release > /dev/null && return ${true}
grep "ID_LIKE=${distro}" /etc/os-release > /dev/null && return ${true}
return ${false}