Skip to content

Commit

Permalink
handle spaces in path (duh)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdias committed Feb 2, 2018
1 parent ba4e2c1 commit 4a79464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/docker-compose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4a79464

Please sign in to comment.