2
0
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:
cxhong 2019-06-12 12:05:41 -04:00
parent 58eba5d23a
commit 7580f12524

View File

@ -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='
'