shell if else

版权声明:关注微信公众号:嵌入式Linux QQ群:69759006 了解更多嵌入式方面知识 https://blog.csdn.net/weiqifa0/article/details/84300468
if ["$IMAGE_FOR_FACTORY_TEST" = true];then                                                     
  echo "ro.xl.factoryrebootcheck=true"
else
  echo "ro.xl.factoryrebootcheck=false"
fi

注意 if 前面有个空格 才到  [

猜你喜欢

转载自blog.csdn.net/weiqifa0/article/details/84300468