From 1df547ee8f8c892a0b2793d3aa5cbde009222d47 Mon Sep 17 00:00:00 2001 From: Alexey Kodanev Date: Thu, 15 Sep 2022 15:34:26 +0300 Subject: [PATCH] parser: fix DISTRO variable in Makefile A single '$()' results in variable expansion, which makes "$(rpm --eval ..)" always an empty string. Signed-off-by: Alexey Kodanev --- parser/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parser/Makefile b/parser/Makefile index ec439e237..15f9d975d 100644 --- a/parser/Makefile +++ b/parser/Makefile @@ -386,11 +386,11 @@ DISTRO=$(shell if [ -f /etc/slackware-version ] ; then \ elif [ -f /etc/debian_version ] ; then \ echo debian ;\ elif which rpm > /dev/null ; then \ - if [ "$(rpm --eval '0%{?suse_version}')" != "0" ] ; then \ + if [ "$$(rpm --eval '0%{?suse_version}')" != "0" ] ; then \ echo suse ;\ - elif [ "$(rpm --eval '%{_host_vendor}')" = redhat ] ; then \ + elif [ "$$(rpm --eval '%{_host_vendor}')" = redhat ] ; then \ echo rhel4 ;\ - elif [ "$(rpm --eval '0%{?fedora}')" != "0" ] ; then \ + elif [ "$$(rpm --eval '0%{?fedora}')" != "0" ] ; then \ echo rhel4 ;\ else \ echo unknown ;\