mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 03:35:42 +01:00
Fix check of fedora and redhat distributions
Fix the syntax error in check of fedora and redhat distributions (BTS #318)
This commit is contained in:
parent
3701b2c65f
commit
b3a003ea3e
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue