Skip to content

Commit e75716e

Browse files
Merge pull request #16 from microsoft/bugfix/debugDropFix
Bugfix/debug drop fix
2 parents f476bf7 + bf2b9c9 commit e75716e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/msdo-client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function init() {
8787
export async function run(inputArgs: string[], telemetryEnvironment: string = 'github') {
8888
let cliFilePath: string = null;
8989
let args: string[] = [];
90-
let debugDrop = process.env.GDN_DEBUG_DROP;
90+
let debugDrop = process.env.GDN_DEBUG_DROP?.toLowerCase();
9191

9292
const gdnTaskLibFolder = path.resolve(__dirname);
9393
core.debug(`gdnTaskLibFolder = ${gdnTaskLibFolder}`);
@@ -145,7 +145,7 @@ export async function run(inputArgs: string[], telemetryEnvironment: string = 'g
145145

146146
// Include the debug drop option on the command line if applicable.
147147
core.debug(`GdnDebugDrop = ${debugDrop}`);
148-
if (debugDrop)
148+
if (debugDrop == 'true')
149149
{
150150
args.push('--debug-drop');
151151
args.push('--debug-drop-path');
@@ -173,7 +173,7 @@ export async function run(inputArgs: string[], telemetryEnvironment: string = 'g
173173
// Package up debug drop if applicable.
174174
let debugStagingDir = '';
175175
core.debug(`GdnDebugDrop = ${debugDrop}`);
176-
if (debugDrop) {
176+
if (debugDrop == 'true') {
177177
if (fs.existsSync(debugFolder)) {
178178
core.debug("Creating debug drop archive...");
179179
let zippedOutput = getZippedFolder(debugFolder);

0 commit comments

Comments
 (0)