From: Takashi Iwai Date: Tue, 22 Feb 2005 17:04:51 +0000 (+0000) Subject: Fix check of fedora and redhat distributions X-Git-Tag: v1.0.9rc1~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b3a003ea3e22d6e22a1f2ef0b64f15858d9996c9;p=alsa-utils.git Fix check of fedora and redhat distributions Fix the syntax error in check of fedora and redhat distributions (BTS #318) --- diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in index f4df17e..9edd3ae 100644 --- a/alsaconf/alsaconf.in +++ b/alsaconf/alsaconf.in @@ -54,9 +54,9 @@ elif [ -f /etc/debian_version ]; then distribution="debian" elif [ -f /etc/mandrake-release ]; then distribution="mandrake" -elif [ -f /etc/redhat-release -a `grep -c "Red Hat" /etc/redhat-release 2>/dev/null` -ne 0 ]; then +elif test -f /etc/redhat-release && grep -q "Red Hat" /etc/redhat-release; then distribution="redhat" -elif [ -f /etc/fedora-release -a `grep -c "Fedora" /etc/fedora-release 2>/dev/null` -ne 0 ]; then +elif test -f /etc/fedora-release && grep -q "Fedora" /etc/fedora-release; then distribution="fedora" else distribution="unknown"