X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.common;h=390b6f3420624a8e62b5d40dbb16e7e87caa7091;hb=267058f3b41b77c23fd316f6f654b82116377bf8;hp=e179c1bc9c4ef5e2e9ed694631cde25840fd70a3;hpb=ae398b93ff4d2580bcdcc566cbda930e80b967fd;p=build.git diff --git a/build.common b/build.common index e179c1bc..390b6f34 100644 --- a/build.common +++ b/build.common @@ -18,9 +18,7 @@ export PATH=.:$PATH function pl_getDistro() { if [ -f "/etc/redhat-release" ] ; then distro=$(awk ' { print $1 } ' /etc/redhat-release) - if [ $distro="Red" ] ; then - distro="Redhat" - fi + case $distro in Red*) distro="Redhat" ; esac else echo "build.common.pl_getDistro-unknown" exit 1