shell 获取环境变量,设置默认值

var=${DEPLOY_ENV:-default_value}
原文地址:https://www.cnblogs.com/buxizhizhoum/p/14062828.html