.sh脚本中,判断某一变量(例如:OEM_CUSTOMER_SUPPORT)是否为某一数值(例如:0),并根据条件做不同处理,写法如下:

if [ $OEM_CUSTOMER_SUPPORT -eq 0 ] ; then
  echo "persist.sys.timezone=Europe/Moscow"     --------------这里是设置系统默认时区
else
  echo "persist.sys.timezone=Asia/Shanghai" 
fi

 

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2021-10-19
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-30
  • 2021-11-28
  • 2021-11-17
  • 2021-10-20
  • 2022-12-23
相关资源
相似解决方案