fix: declare DOKKU_DEPLOY_BRANCH
This commit is contained in:
@@ -142,11 +142,12 @@ git_hook_cmd() {
|
|||||||
git_build() {
|
git_build() {
|
||||||
declare desc="setup and call git_build_app_repo"
|
declare desc="setup and call git_build_app_repo"
|
||||||
local APP="$1"
|
local APP="$1"
|
||||||
|
local DOKKU_DEPLOY_BRANCH REF
|
||||||
if [[ $# -ge 2 ]]; then
|
if [[ $# -ge 2 ]]; then
|
||||||
local REF="$2"
|
local REF="$2"
|
||||||
else
|
else
|
||||||
DOKKU_DEPLOY_BRANCH="$(git_deploy_branch "$APP")"
|
DOKKU_DEPLOY_BRANCH="$(git_deploy_branch "$APP")"
|
||||||
local REF=$(< "$DOKKU_ROOT/$APP/refs/heads/$DOKKU_DEPLOY_BRANCH")
|
REF=$(< "$DOKKU_ROOT/$APP/refs/heads/$DOKKU_DEPLOY_BRANCH")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
|||||||
Reference in New Issue
Block a user