Skip to content

Commit 937da9b

Browse files
authored
HBASE-28404 Use "set -x" when running release script in debug mode (#5715)
1 parent 5cb87ef commit 937da9b

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

dev-support/create-release/do-release-docker.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ shift $((OPTIND-1))
102102
if (( $# > 0 )); then
103103
error "Arguments can only be provided with option flags, invalid args: $*"
104104
fi
105+
106+
if [ "$DEBUG" = "1" ]; then
107+
set -x
108+
fi
105109
export DEBUG
106110

107111
if [ -z "$WORKDIR" ] || [ ! -d "$WORKDIR" ]; then
@@ -221,6 +225,7 @@ ASF_PASSWORD=$ASF_PASSWORD
221225
RELEASE_STEP=$RELEASE_STEP
222226
API_DIFF_TAG=$API_DIFF_TAG
223227
HOST_OS=$HOST_OS
228+
DEBUG=$DEBUG
224229
EOF
225230

226231
JAVA_MOUNT=()

dev-support/create-release/do-release.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
# limitations under the License.
1818
#
1919

20+
# Turn on Bash command logging for debug mode
21+
if [ "$DEBUG" = "1" ]; then
22+
set -x
23+
fi
24+
2025
# Make a tmp dir into which we put files cleaned-up on exit.
2126
TMPDIR=$(mktemp -d)
2227
trap "rm -rf $TMPDIR" EXIT

0 commit comments

Comments
 (0)