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

remove negative exit codes and other shellchecks in wedge_power.sh #228

Closed
wants to merge 1 commit into from

Conversation

Scott8440
Copy link
Contributor

Summary: I was getting shellcheck errors when editing this file in another diff. Negative exit codes and return values are not supported in bash: https://unix.stackexchange.com/questions/418784/what-is-the-min-and-max-values-of-exit-codes-in-linux

Test Plan: This is the only usage of it in code and it doesn't rely on a negative exit code (which couldn't happen anyways): https://www.internalfb.com/code/search?q=WEDGE_POWER_RESET_CMD

Differential Revision: D47138227

Reviewed By: smithscott

…acebook#228)

Summary:
Pull Request resolved: facebook#228

I was getting shellcheck errors when editing this file in another diff. Negative exit codes and return values are not supported in bash: https://unix.stackexchange.com/questions/418784/what-is-the-min-and-max-values-of-exit-codes-in-linux

Test Plan: This is the only usage of it in code and it doesn't rely on a negative exit code (which couldn't happen anyways): https://www.internalfb.com/code/search?q=WEDGE_POWER_RESET_CMD

Reviewed By: doranand

Differential Revision: D47138227

fbshipit-source-id: 62c9cd1c68530738903f7c711a33a6b17c212bbb
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47138227

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47138227

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 0554af8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants