Skip to content

Commit 469f814

Browse files
committed
chore: annotate exit points
1 parent 4e37156 commit 469f814

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

please

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ while [[ $# -gt 0 ]]; do
240240
esac
241241
done
242242

243-
[[ $REPO ]] || error "$(pwd) is not git repo" 1
244-
[[ "$VCS" == *"github"* ]] && [[ -z "$GH_AUTH_TOKEN" ]] && error "GH_AUTH_TOKEN missing" 1
243+
[[ $REPO ]] || error "$(pwd) is not git repo" 1 # exit
244+
[[ "$VCS" == *"github"* ]] && [[ -z "$GH_AUTH_TOKEN" ]] && error "GH_AUTH_TOKEN missing" 1 # exit
245245

246246
GPUSH=0 # git push pending
247247
MAJOR=${MAJOR:-0} # bump major
@@ -278,7 +278,7 @@ info "Collecting commits ..."
278278
COMMITS=$(organize-commits "$RANGE" "$TYPES")
279279
ok
280280

281-
[[ $COMMITS ]] || error "Nothing to release" 0
281+
[[ $COMMITS ]] || error "Nothing to release" 0 # exit
282282

283283
echo $COMMITS >> $TMP_LOG
284284

@@ -305,7 +305,7 @@ ok " Done [$NEXT_VERSION]"
305305
if [[ $YES -eq 0 ]]; then
306306
read -p "Are you sure to release [$NEXT_VERSION]? [y/N] " -n 1 -r
307307
echo
308-
[[ $REPLY =~ ^[Yy]$ ]] || error "Not releasing $NEXT_VERSION" 1
308+
[[ $REPLY =~ ^[Yy]$ ]] || error "Skipping release for $NEXT_VERSION" 1 # exit
309309
fi
310310

311311
# changelog backup

0 commit comments

Comments
 (0)