1490
*/
1491
private async _ensureCLIInstalledLoose(client: SSHClient, platform: { os: string; arch: string }, reportProgress: (message: string) => void): Promise<string> {
1493
>
const installRoot = getRemoteCLIInstallRoot(this._serverDataFolderName);
1494
>
this._logService.warn(`${LOG_PREFIX} Desktop has no product commit; falling back to non-pinned CLI install at ${cliBin}.`);
1495
>
1496
>
const { code } = await sshExec(client, `${cliBin} --version`, { ignoreExitCode: true });
1497
>
if (code === 0) {
1498
this._logService.info(`${LOG_PREFIX} Reusing remote CLI at ${cliBin} (dev build, --version check passed)`);
1499
return cliBin;