We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37827d8 commit 9ffd997Copy full SHA for 9ffd997
tools/release
@@ -56,11 +56,13 @@ _check_cli() {
56
}
57
58
_check_git() {
59
- # ensure that changes have been committed
60
- if [[ -n $(git status . -s) ]]; then
61
- echo "> Abort: Commit the staged files first, and then run this tool again."
62
- exit 1
63
- fi
+ $opt_pre || (
+ # ensure that changes have been committed
+ if [[ -n $(git status . -s) ]]; then
+ echo "> Abort: Commit the staged files first, and then run this tool again."
+ exit 1
64
+ fi
65
+ )
66
67
$opt_pkg || (
68
if [[ "$(git branch --show-current)" != "$RELEASE_BRANCH" ]]; then
0 commit comments