mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-19 17:04:00 +00:00
Add QUIET mode
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
# These environment variables are for special builds:
|
# These environment variables are for special builds:
|
||||||
# UPDATE_DOCS=0|1 - Do (not) update docs
|
# UPDATE_DOCS=0|1 - Do (not) update docs
|
||||||
# BETA=1 - UPDATE_DOCS=0 BUILD_RPM=0 BUILD_DEB=0
|
# BETA=1 - UPDATE_DOCS=0 BUILD_RPM=0 BUILD_DEB=0
|
||||||
|
# QUIET=1 - Do (not) ask questions
|
||||||
#
|
#
|
||||||
# A few more things you should know:
|
# A few more things you should know:
|
||||||
# * You'll need rpmbuild and dpkg-buildpackage to build the rpm and deb pkgs
|
# * You'll need rpmbuild and dpkg-buildpackage to build the rpm and deb pkgs
|
||||||
@@ -556,7 +557,9 @@ fi
|
|||||||
# time before the release packages are built. This script can't do that
|
# time before the release packages are built. This script can't do that
|
||||||
# because your branch could non-standard.
|
# because your branch could non-standard.
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
|
QUIET=${QUIET:-0}
|
||||||
if [ $BUILD -eq 1 ]; then
|
if [ $BUILD -eq 1 ]; then
|
||||||
|
if [ $QUIET -eq 0 ]; then
|
||||||
cat <<MSG
|
cat <<MSG
|
||||||
|
|
||||||
Branch verified and updated; ready to build $PKG,
|
Branch verified and updated; ready to build $PKG,
|
||||||
@@ -571,6 +574,7 @@ Press any key to continue... (or Ctrl-C to abort)
|
|||||||
MSG
|
MSG
|
||||||
|
|
||||||
read
|
read
|
||||||
|
fi
|
||||||
|
|
||||||
prep_release_dir
|
prep_release_dir
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user