Skip to content

Commit

Permalink
shell - installed only for interactive shells
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoalves committed Nov 26, 2020
1 parent 76a3dab commit 6cf1824
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cmd/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class Shell implements Command {
pkgNames = [ this.config.defaultPackage ];
}

let osShell:OsShell = new OsShell(this.config, pkgNames);
let osShell:OsShell = new OsShell(this.config, pkgNames, true);
osShell.interactive = true;

await osShell.execute([]);
Expand Down
4 changes: 2 additions & 2 deletions src/lib/shellUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export class OsShell {
private _ignoreErrors: boolean = false;
private _stripCRLF: boolean = false;

constructor(private config: Config, private pkgNames: string[]) {
constructor(private config: Config, private pkgNames: string[], installedOnly = false) {
if (!pkgNames || pkgNames.length == 0) {
throw new Error("No package");
}

let pkgs: FileSystemPackage[] | null = this.config.packageManager.resolvePackages(pkgNames, true);
let pkgs: FileSystemPackage[] | null = this.config.packageManager.resolvePackages(pkgNames, installedOnly);
if (!pkgs) {
throw new Error("Unable to load dependencies for a levain shell. Aborting...");
}
Expand Down

0 comments on commit 6cf1824

Please sign in to comment.