From 4a79464dc191e4fcc78e8902ae24af0d3ea1433b Mon Sep 17 00:00:00 2001 From: chrisdias Date: Fri, 2 Feb 2018 10:41:29 -0800 Subject: [PATCH] handle spaces in path (duh) --- commands/docker-compose.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/docker-compose.ts b/commands/docker-compose.ts index 8fdc85ac60..91d1dc710c 100644 --- a/commands/docker-compose.ts +++ b/commands/docker-compose.ts @@ -71,7 +71,7 @@ async function compose(command: string, message: string, dockerComposeFileUri?: const detached: string = configOptions.get('dockerComposeDetached', true) ? '-d' : ''; - terminal.sendText(`cd ${folder.uri.fsPath}`); + terminal.sendText(`cd "${folder.uri.fsPath}"`); terminal.sendText(command.toLowerCase() === 'up' ? `docker-compose -f ${selectedItem.file} ${command} ${detached} ${build}` : `docker-compose -f ${selectedItem.file} ${command}`); terminal.show(); if (reporter) {