We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
'update_self' master
'update_self' main
main
1 parent da69421 commit 3d94701Copy full SHA for 3d94701
1 file changed
.scripts/update_self.sh
@@ -6,11 +6,13 @@ update_self() {
6
local BRANCH CurrentBranch CurrentVersion RemoteVersion
7
BRANCH=${1-}
8
shift || true
9
+ if [[ ${BRANCH-} == 'master' ]] && ds_branch_exists 'main'; then
10
+ BRANCH='main'
11
+ fi
12
13
pushd "${SCRIPTPATH}" &> /dev/null || fatal "Failed to change directory.\nFailing command: ${F[C]}push \"${SCRIPTPATH}\""
14
CurrentBranch="$(git branch --show)"
15
CurrentVersion="$(ds_version)"
-
16
local Title="Update ${APPLICATION_NAME}"
17
local Question YesNotice NoNotice
18
if [[ -z ${BRANCH-} ]]; then
@@ -129,5 +131,6 @@ commands_update_self() {
129
131
}
130
132
133
test_update_self() {
- run_script 'update_self' "${COMMIT_SHA-}"
134
+ warn "CI does not test update_self."
135
+ #@run_script 'update_self' "${COMMIT_SHA-}"
136
0 commit comments