Skip to content

Commit

Permalink
ensure_pantry is too late here
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Sep 13, 2023
1 parent c4a7785 commit 1a86527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export default async function({ flags, ...opts }: Args, logger_prefix?: string)
switch (opts.mode) {
case 'x': {
const { args } = opts
await ensure_pantry()
const {update, ...xopts} = await parse_xopts(opts.pkgs, flags.update)
const pkgs = consolidate(xopts.pkgs)
await ensure_pantry()
if (args[0] == 'sh') {
await repl(args.slice(1), { update, pkgs, logger })
} else {
Expand Down

0 comments on commit 1a86527

Please sign in to comment.