]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Fix check of fedora and redhat distributions
authorTakashi Iwai <tiwai@suse.de>
Tue, 22 Feb 2005 17:04:51 +0000 (17:04 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Feb 2005 17:04:51 +0000 (17:04 +0000)
Fix the syntax error in check of fedora and redhat distributions
(BTS #318)

alsaconf/alsaconf.in

index f4df17e06ea243e171da06d7ed494ed7dbbe1e52..9edd3ae043e6397b193d9fd1b4a23be4c86ec38e 100644 (file)
@@ -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"