fix: use correct variable name when writing deploy-branch value

Closes #3158
This commit is contained in:
Jose Diaz-Gonzalez
2018-04-20 14:20:26 -04:00
committed by GitHub
parent 3c7e5730ec
commit 24a30c8d4b

View File

@@ -23,7 +23,7 @@ migrate_git_vars_0_12_0() {
for app in $APPS; 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"
fn-plugin-property-write "git" "$app" "deploy-branch" "$DOKKU_DEPLOY_BRANCH"
config_unset --no-restart "$app" DOKKU_DEPLOY_BRANCH || true
fi
done