Skip to content

Conversation

@fasuizu-br
Copy link

Summary

invoke_script() (macOS) and run_command() (Linux) check output.status.success() && output.stderr.is_empty(), which incorrectly treats successful commands as failures when they write informational messages to stderr. Removed the stderr.is_empty() condition.

Closes #20

Test plan

  • cargo check --target aarch64-apple-darwin passes

Commands like osascript and shutdown may write informational messages
to stderr even on success. The stderr.is_empty() check caused these
successful operations to be incorrectly reported as failures.
Only check output.status.success() to determine command outcome.

Closes risoflora#20
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

Successfully merging this pull request may close these issues.

Bug: stderr.is_empty() check causes false negatives

1 participant