add cwd to default execution

This commit is contained in:
srgooglo 2023-11-24 17:19:53 +01:00
parent 8ff1913438
commit 01ee0f4379

View File

@ -576,6 +576,7 @@ export default class PkgManager {
await new Promise((resolve, reject) => { await new Promise((resolve, reject) => {
const process = child_process.execFile(manifest.execute, [], { const process = child_process.execFile(manifest.execute, [], {
shell: true, shell: true,
cwd: manifest.install_path,
}) })
process.on("exit", resolve) process.on("exit", resolve)