Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

particle 3.8.0 usb commands return non-zero exit codes #634

Open
saisani opened this issue Mar 28, 2023 · 0 comments
Open

particle 3.8.0 usb commands return non-zero exit codes #634

saisani opened this issue Mar 28, 2023 · 0 comments

Comments

@saisani
Copy link

saisani commented Mar 28, 2023

Description

In the latest update of particle-cli to 3.8.0 produces incorrect error codes whenever using particle usb .... The command actually succeeds, but it will return a failure exit code (non-zero).

This issue is not present if switching back to 3.7.0.

Functionality everything is the same, but users will experience issues if they integrate particle-cli into other scripts.

Steps to reproduce

What are the minimal set of steps required to reproduce the issue?

% particle usb dfu
% echo $?

Expected result

What should happen?

After echo $?, the terminal should show 0.

Actual result

What happened?

echo $? actually returns 255

Environment

Tell us about your setup:

  • OS: macOS Ventura 13.1
  • Node (run node -v): v19.8.1
  • NPM (run npm -v): 9.5.1
  • Particle CLI (run particle version): 3.8.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant