Skip to content

Commit

Permalink
HBASE-28404 Use "set -x" when running release script in debug mode (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
stoty authored Feb 29, 2024
1 parent 5cb87ef commit 937da9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev-support/create-release/do-release-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ shift $((OPTIND-1))
if (( $# > 0 )); then
error "Arguments can only be provided with option flags, invalid args: $*"
fi

if [ "$DEBUG" = "1" ]; then
set -x
fi
export DEBUG

if [ -z "$WORKDIR" ] || [ ! -d "$WORKDIR" ]; then
Expand Down Expand Up @@ -221,6 +225,7 @@ ASF_PASSWORD=$ASF_PASSWORD
RELEASE_STEP=$RELEASE_STEP
API_DIFF_TAG=$API_DIFF_TAG
HOST_OS=$HOST_OS
DEBUG=$DEBUG
EOF

JAVA_MOUNT=()
Expand Down
5 changes: 5 additions & 0 deletions dev-support/create-release/do-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
# limitations under the License.
#

# Turn on Bash command logging for debug mode
if [ "$DEBUG" = "1" ]; then
set -x
fi

# Make a tmp dir into which we put files cleaned-up on exit.
TMPDIR=$(mktemp -d)
trap "rm -rf $TMPDIR" EXIT
Expand Down

0 comments on commit 937da9b

Please sign in to comment.