Skip to content

Commit 568a58f

Browse files
committed
Support debug logging in release script
1 parent 0528601 commit 568a58f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎ci/build/build-release.sh‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4+
if [[ ${RUNNER_DEBUG-} = 1 ]]; then
5+
set -x
6+
fi
7+
48
# Once both code-server and VS Code have been built, use this script to copy
59
# them into a single directory (./release), prepare the package.json and
610
# product.json, and add shrinkwraps. This results in a generic NPM package that
@@ -85,7 +89,7 @@ EOF
8589

8690
if [ "$KEEP_MODULES" = 1 ]; then
8791
local rsync_opts=(-a)
88-
if [[ ${DEBUG-} = 1 ]]; then
92+
if [[ ${RUNNER_DEBUG-} = 1 ]]; then
8993
rsync_opts+=(-vh)
9094
fi
9195
# If we build from source, exclude the prebuilds.
@@ -106,7 +110,7 @@ bundle_vscode() {
106110
mkdir -p "$VSCODE_OUT_PATH"
107111

108112
local rsync_opts=(-a)
109-
if [[ ${DEBUG-} = 1 ]]; then
113+
if [[ ${RUNNER_DEBUG-} = 1 ]]; then
110114
rsync_opts+=(-vh)
111115
fi
112116

0 commit comments

Comments
 (0)