Skip to content

Commit 8e9f860

Browse files
committed
fix: emtpy env
1 parent 0354134 commit 8e9f860

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/cmd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const cmd = async (cmd: string, config?: Partial<CmdConfig>) => {
2121
stdio: enableOutput ? "inherit" : "pipe",
2222
timeout,
2323
cwd,
24-
env: config.env,
24+
env: config?.env || {},
2525
});
2626
const out_data: Buffer[] = [];
2727
child.stderr?.on("data", (data) => {

0 commit comments

Comments
 (0)