Skip to content

Commit

Permalink
Add comment about reading stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
priitlatt committed Sep 16, 2024
1 parent 920b3b0 commit 1af5984
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/codemagic/models/certificate_p12_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def _is_noenc_flag_supported(self) -> bool:
capture_output=True,
check=False,
)
# Check both stdout and stderr because LibreSSL doesn't have help commands per-se.
# Execution fails, and it just outputs "unknown option '-help'" along with full
# command usage to stderr.
self.__SUPPORTS_NOENC__ = b"-noenc" in completed_process.stdout or b"-noenc" in completed_process.stderr

return self.__SUPPORTS_NOENC__
Expand Down

0 comments on commit 1af5984

Please sign in to comment.