mirror of
https://github.com/Mail-0/Zero.git
synced 2026-06-28 14:56:48 +00:00
Revert "updated utils.ts to make nizzy sync work for windows" (#1450)
This commit is contained in:
@@ -16,12 +16,7 @@ export const getProjectRoot = async () => {
|
||||
};
|
||||
|
||||
export const runCommand = async (command: string, args: string[], options: SpawnOptions = {}) => {
|
||||
const isWindows = process.platform === 'win32';
|
||||
const child = spawn(command, args, {
|
||||
stdio: 'inherit',
|
||||
shell: isWindows,
|
||||
...options,
|
||||
});
|
||||
const child = spawn(command, args, { stdio: 'inherit', ...options });
|
||||
await new Promise((resolve, reject) => {
|
||||
child.once('close', resolve);
|
||||
child.once('error', reject);
|
||||
|
||||
Reference in New Issue
Block a user