Fix a regression with unset envvars (#905)

This commit is contained in:
Chad Whitacre 2021-03-29 10:41:20 -04:00 committed by GitHub
parent 88f90e046e
commit cf4f21c039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,7 +289,7 @@ fi
echo "${_endgroup}"
echo "${_group}Setting up database ..."
if [[ -n "$CI" || "$SKIP_USER_PROMPT" == 1 ]]; then
if [[ -n "${CI:-''}" || "${SKIP_USER_PROMPT:-0}" == 1 ]]; then
$dcr web upgrade --noinput
echo ""
echo "Did not prompt for user creation due to non-interactive shell."