Skip to content

Commit

Permalink
fix: missing file in shellwrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Aug 21, 2023
1 parent 92d6e33 commit fdc0dc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/install-tool/install-tool-base.service.ts
Expand Up @@ -19,7 +19,7 @@ export abstract class InstallToolBaseService {

constructor(
protected readonly pathSvc: PathService,
protected envSvc: EnvService,
protected readonly envSvc: EnvService,
) {}

abstract install(version: string): Promise<void>;
Expand Down Expand Up @@ -61,7 +61,7 @@ export abstract class InstallToolBaseService {
let content = `#!/bin/bash
if [[ -z "\${CONTAINERBASE_ENV+x}" ]]; then
. $ENV_FILE
. ${this.pathSvc.envFile}
fi
`;

Expand Down
4 changes: 4 additions & 0 deletions src/cli/services/path.service.ts
Expand Up @@ -16,6 +16,10 @@ export class PathService {
return join(this.envSvc.rootDir, 'usr/local/bin');
}

get envFile(): string {
return join(this.envSvc.rootDir, 'usr/local/etc/env');
}

get tmpDir(): string {
return join(this.envSvc.rootDir, 'tmp');
}
Expand Down

0 comments on commit fdc0dc6

Please sign in to comment.