@cloudbase/cli 2.8.27 → 2.8.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -396,8 +396,7 @@ class AICommandRouter {
396
396
  executeCommand(command, args, env, log) {
397
397
  return __awaiter(this, void 0, void 0, function* () {
398
398
  return new Promise((resolve, reject) => {
399
- const useShell = process.platform !== 'win32' ||
400
- (process.env.WSL_DISTRO_NAME || process.env.MSYS2 || process.env.GIT_BASH);
399
+ const useShell = process.platform === 'win32';
401
400
  const child = (0, child_process_1.spawn)(command, args, {
402
401
  stdio: 'inherit',
403
402
  env,
@@ -442,11 +441,9 @@ class AICommandRouter {
442
441
  isToolAvailable(command) {
443
442
  return __awaiter(this, void 0, void 0, function* () {
444
443
  return new Promise((resolve) => {
445
- const useShell = process.platform !== 'win32' ||
446
- (process.env.WSL_DISTRO_NAME || process.env.MSYS2 || process.env.GIT_BASH);
447
444
  const child = (0, child_process_1.spawn)(command, ['--version'], {
448
445
  stdio: 'pipe',
449
- shell: useShell
446
+ shell: true
450
447
  });
451
448
  child.on('close', (code) => {
452
449
  resolve(code === 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cli",
3
- "version": "2.8.27",
3
+ "version": "2.8.28",
4
4
  "description": "cli tool for cloudbase",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {