mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 17:46:38 +00:00
copycds_iso test case failed if os has multiple '.'
This commit is contained in:
parent
58eba5d23a
commit
7580f12524
@ -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='
|
||||
'
|
||||
|
Loading…
x
Reference in New Issue
Block a user