diff --git a/xCAT-test/autotest/testcase/copycds/copycds.sh b/xCAT-test/autotest/testcase/copycds/copycds.sh index f7e04f842..6945d5492 100755 --- a/xCAT-test/autotest/testcase/copycds/copycds.sh +++ b/xCAT-test/autotest/testcase/copycds/copycds.sh @@ -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=' '