Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kiturutin committed Dec 10, 2023
1 parent f030246 commit b5a0a85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/services/docker_client.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import os from 'os';
import {exec as execCb, spawn, execSync} from 'child_process';
import { promisify } from 'util';
import {ErrorType, decoratedError} from "../browserup_errors.mjs";
import {Docker} from "../utils/docker.mjs";
import yaml from "js-yaml";

const exec = promisify(execCb);

Expand Down Expand Up @@ -375,8 +373,8 @@ export class DockerClient {
if (removeVolumes) {
cmd += ' -v';
}
const dummyEnvs = await this.getEmptyDockerComposeEnvs({dockerComposePath})
const result = await this.execCommand(cmd, dummyEnvs);
const emptyEnvs = await this.getEmptyDockerComposeEnvs({dockerComposePath})
const result = await this.execCommand(cmd, emptyEnvs);

if (result.exitCode !== 0) {
let msg = `Failed to run 'docker-compose down': \n>> ${result.stderr.join(">> ")}`;
Expand Down

0 comments on commit b5a0a85

Please sign in to comment.