renative icon indicating copy to clipboard operation
renative copied to clipboard

[REGRESSION] commandExistsSync incorrectly returns false in some cases

Open locksten opened this issue 1 year ago • 0 comments

Describe the bug commandExistsSync("somecmd") returns false if somecmd doesn't support the --version option or exits with a non-zero exit code.

To Reproduce Call commandExistsSync("unzip").

Expected behavior It should return true, but returns false instead.

Desktop

  • OS: macOS
  • Node Version v18.19.0
  • RNV Version 1.0.0-rc.21

Additional context Not all commands support --version, so commandExistsSync should not rely on it. Regressed here.

locksten avatar Jul 17 '24 11:07 locksten