Fix source greenplum_path.sh error with set -u (#11085)
The error was introduced by dc96f667. If `set -u` was called before sourcing greenplum_path.sh with bash, an error `ZSH_VERSION: unbound variable` would be reported. To solve the issue, use shell syntax `{:-}` which will output an empty value if the variable doesn't exist. Tested with zsh, bash and dash.
Showing
想要评论请 注册 或 登录