[: too many arguments
raid.sh: line 98: [: too many arguments
问题原因:和版本的通用性是有关系的
until [ $confirm == yes -o $confirm == no ]
将上面的变量用双引号引起来就可以了
until [ “ c o n f i r m " = = " y e s " − o " confirm" == "yes" -o " confirm"=="yes"−o"confirm” == “no” ]