mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 22:55:13 +00:00
The telemetry.js script should handle paths that contain spaces (#12078)
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { execSync } from 'node:child_process';
|
import { execFileSync } from 'node:child_process';
|
||||||
import { join } from 'node:path';
|
import { join } from 'node:path';
|
||||||
import { existsSync, readFileSync } from 'node:fs';
|
import { existsSync, readFileSync } from 'node:fs';
|
||||||
import { GEMINI_DIR } from '@google/gemini-cli-core';
|
import { GEMINI_DIR } from '@google/gemini-cli-core';
|
||||||
@@ -79,7 +79,7 @@ try {
|
|||||||
console.log(`🚀 Running telemetry script for target: ${target}.`);
|
console.log(`🚀 Running telemetry script for target: ${target}.`);
|
||||||
const env = { ...process.env };
|
const env = { ...process.env };
|
||||||
|
|
||||||
execSync(`node ${scriptPath}`, {
|
execFileSync('node', [scriptPath], {
|
||||||
stdio: 'inherit',
|
stdio: 'inherit',
|
||||||
cwd: projectRoot,
|
cwd: projectRoot,
|
||||||
env,
|
env,
|
||||||
|
|||||||
Reference in New Issue
Block a user