Fix: OS name detection error by build scripts 55/4355/3
authorAbdul Halim <abdul.halim@intel.com>
Fri, 11 Dec 2015 11:54:13 +0000 (11:54 +0000)
committerMaryam Tahhan <maryam.tahhan@intel.com>
Mon, 14 Dec 2015 10:05:11 +0000 (10:05 +0000)
commit088c895dc2363bd0b586a2ddfeebf13f6755ee4e
tree0bb9b30dfd4478d41bcce22f392b112f5e6ee627
parenta60091c234823b87481bb4bc072effc1c8447b59
Fix: OS name detection error by build scripts

There is a problem detecting OS specific scripts dir if NAME variable in
/etc/os-release contains a multi-word string (e.g NAME="CentOS Linux").
To fix this we get first part of the NAME string (i.e "CentOS") for
simplicity and look for version specific scripts dir within that.

Change-Id: Ic840788875e9b486b20608a9b9e523cbd4530e31
Signed-off-by: Abdul Halim <abdul.halim@intel.com>
Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com>
Reviewed-by: Al Morton <acmorton@att.com>
Reviewed-by: Brian Castelli <Brian.Castelli@spirent.com>
systems/build_base_machine.sh