build: use sh instead of exec for release scripts (#36862)

Previously the exec command was used, however the exec command would
exit the original calling script regardless of the whether exit was
called.  This caused the release script to always exit after the
pre-check phase.

PR Close #36862
This commit is contained in:
Joey Perrott 2020-04-29 12:40:52 -07:00 committed by Andrew Kushnir
parent 3d82aa781d
commit cebd4fada7
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ set -u -e -o pipefail
# Runs the pre-check before performing the publish to ensure
# the version is valid for release.
exec "$(dirname "$0")/pre-check";
sh "$(dirname "$0")/pre-check";
# Use for production releases
# Query Bazel for npm_package and ng_package rules with tags=["release-with-framework"]

View File

@ -4,7 +4,7 @@ set -u -e -o pipefail
# Runs the pre-check before performing the publish to ensure
# the version is valid for release.
exec "$(dirname "$0")/pre-check";
sh "$(dirname "$0")/pre-check";
# Use for BETA and RC releases
# Query Bazel for npm_package and ng_package rules with tags=["release-with-framework"]