File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 33GIT_BRANCH=$( git branch --show-current)
44
55if [[ " master" != " $GIT_BRANCH " ]]; then
6- echo " Not on 'master' branch. You have 5 seconds to abort, before script will continue "
6+ echo " Release will be made from branch $GIT_BRANCH . "
77 sleep 5
88fi
99
1010
11- # if [[ -n $(git cherry -v) ]]; then
12- # echo "Detected unpushed commits. Exit"
13- # exit 1
14- # fi
15- #
16- # if [[ -n $(git status --porcelain --untracked-files=no) ]]; then
17- # echo "Uncommited changes detected. Exit"
18- # exit 1
19- # fi
11+ if [[ -n $( git cherry -v) ]]; then
12+ echo " Detected unpushed commits. Exit"
13+ exit 1
14+ fi
15+
16+ if [[ -n $( git status --porcelain --untracked-files=no) ]]; then
17+ echo " Uncommitted changes detected. Exit"
18+ exit 1
19+ fi
2020
2121while getopts " v:" opt; do
2222 case $opt in
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ run_alias() {
4444@test " CDOC2 version is found" {
4545 run echo $CDOC2_VER
4646 echo " # $CDOC2_VER " >&3
47- assert_output --partial ' SNAPSHOT '
47+ assert_output --regexp ' ^[0-9]+\.[0-9]+\.[0-9].*$ '
4848}
4949
5050@test " preparing: assert BATS_HOME value exists" {
You can’t perform that action at this time.
0 commit comments