可以通过构建参数,来判断是否执行
在构建的第一个任务写if判断语句
if [ "$update_yes_or_no" = "yes" ];then
echo "正在更新"
else
echo -e "\033[31m error: 没有确定是否更新 \033[0m"
exit 1
fi
ifconfig
可以通过构建参数,来判断是否执行
在构建的第一个任务写if判断语句
if [ "$update_yes_or_no" = "yes" ];then
echo "正在更新"
else
echo -e "\033[31m error: 没有确定是否更新 \033[0m"
exit 1
fi
ifconfig