From ffb80c2426d5627d212b334162e95a0be784a4e0 Mon Sep 17 00:00:00 2001 From: Joseph Sheng Date: Fri, 9 Jan 2026 08:07:57 +0800 Subject: [PATCH] The telemetry.js script should handle paths that contain spaces (#12078) --- scripts/telemetry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/telemetry.js b/scripts/telemetry.js index 0fd686beb2..e7a96fef74 100755 --- a/scripts/telemetry.js +++ b/scripts/telemetry.js @@ -6,7 +6,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { execSync } from 'node:child_process'; +import { execFileSync } from 'node:child_process'; import { join } from 'node:path'; import { existsSync, readFileSync } from 'node:fs'; import { GEMINI_DIR } from '@google/gemini-cli-core'; @@ -79,7 +79,7 @@ try { console.log(`🚀 Running telemetry script for target: ${target}.`); const env = { ...process.env }; - execSync(`node ${scriptPath}`, { + execFileSync('node', [scriptPath], { stdio: 'inherit', cwd: projectRoot, env,