这是我的代码:
echo $1 $2
if [ "Release"!="$2" -a "Debug"!="{$2}" ]; then
echo "error! the arg of -c must be \"Release\" or \"Debug\" !"
exit 1
fi
XCODECONFIG="$2";
当我输入
./build.sh a Release
输出是:
a Release
error! the arg of -c must be "Release" or "Debug" !
它打印“错误!-c 的参数必须是“发布”或“调试”!“ 为什么不继续 XCODECONFIG="$2"?