Skip to content

Commit 9b3bc4d

Browse files
Added debug option
1 parent d5155df commit 9b3bc4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/release.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33

44
export RELEASE_VERSION="${RELEASE_VERSION:-}"
55
export POST_RELEASE_VERSION="${POST_RELEASE_VERSION:-}"
6+
export DEBUG="${DEBUG:-false}"
67

78
export VERSION="${RELEASE_VERSION}"
89
export FOO_SEC="${FOO_SEC:-}"
@@ -11,6 +12,10 @@ export FOO_PASSPHRASE="${FOO_PASSPHRASE:-}"
1112
export SONATYPE_USER="${SONATYPE_USER:-}"
1213
export SONATYPE_PASSWORD="${SONATYPE_PASSWORD:-}"
1314

15+
if [[ "${DEBUG}" == "true" ]]; then
16+
set -x
17+
fi
18+
1419
temporaryDir="$(mktemp -d)"
1520
trap "{ rm -rf ${temporaryDir}; }" EXIT
1621

0 commit comments

Comments
 (0)