1. 程式人生 > >shell if else

shell if else

if ["$IMAGE_FOR_FACTORY_TEST" = true];then                                                     
  echo "ro.xl.factoryrebootcheck=true"
else
  echo "ro.xl.factoryrebootcheck=false"
fi

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