We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89a19ed commit ce7e38eCopy full SHA for ce7e38e
1 file changed
packages/cli/src/commands/doctor/healthchecks/androidStudio.ts
@@ -26,9 +26,8 @@ export default {
26
'bin',
27
'studio.exe',
28
).replace(/\\/g, '\\\\');
29
- const powershell = `${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
30
const {stdout} = await executeCommand(
31
- `${powershell} -Command "& { (Get-ChildItem \\"${androidStudioPath}\\").VersionInfo.FileVersionRaw.ToString() }"`,
+ `wmic datafile where name="${androidStudioPath}" get Version`,
32
);
33
const version = stdout.replace(/(\r\n|\n|\r)/gm, '').trim();
34
0 commit comments