chore: silence the warning message when there are no dokku apps on install

This commit is contained in:
Jose Diaz-Gonzalez
2022-11-28 02:20:54 -05:00
parent f8cf40fc2d
commit 1a14731f46
4 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ migrate_git_vars_0_12_0() {
DOKKU_QUIET_OUTPUT=1 config_unset --global DOKKU_DEPLOY_BRANCH || true
fi
for app in $(dokku_apps "false"); do
for app in $(dokku_apps "false" 2>/dev/null); do
DOKKU_DEPLOY_BRANCH=$(config_get "$app" DOKKU_DEPLOY_BRANCH || true)
if [[ -n "$DOKKU_DEPLOY_BRANCH" ]]; then
fn-plugin-property-write "git" "$app" "deploy-branch" "$DOKKU_DEPLOY_BRANCH"