git://git.onelab.eu
/
build.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix pl_getDistro - was always returning Redhat
[build.git]
/
build.common
diff --git
a/build.common
b/build.common
index
e179c1b
..
390b6f3
100644
(file)
--- 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)
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
else
echo "build.common.pl_getDistro-unknown"
exit 1