[: too many arguments

raid.sh: line 98: [: too many arguments

问题原因:和版本的通用性是有关系的

until [ $confirm == yes -o $confirm == no ]

将上面的变量用双引号引起来就可以了

until [ "$confirm" == "yes" -o "$confirm" == "no" ]

你可能感兴趣的:([: too many arguments)