mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 18:50:28 +00:00
Merge pull request #6356 from cxhong/6355
copycds_iso test case failed if os has multiple '.'
This commit is contained in:
@@ -11,7 +11,7 @@ if [[ $OS != *"rhels"* ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
MAJOR_OS_VER=${OS%.*}
|
||||
MAJOR_OS_VER=`echo $OS | cut -d'.' -f1`
|
||||
if [[ $OS == *"$MAJOR_OS_VER"* ]]; then
|
||||
IFS='
|
||||
'
|
||||
|
Reference in New Issue
Block a user