I created PR #83 (and it was merged, thanks!), where we used brew --prefix openssl to probe openssl libraries.
But it turns out that brew --prefix openssl prints a directory even if openssl formula is not installed. I'm sorry.
❯ brew --prefix --help
Usage: brew --prefix [--unbrewed] [--installed] [formula ...]
...
If formula is provided, display the location where formula is or would be
installed.
...
--installed Outputs nothing and returns a failing
status code if formula is not installed.
This PR adds --installed option to brew --prefix command so that brew --prefix prints a directory only if openssl formula is actually installed.
I created PR #83 (and it was merged, thanks!), where we used
brew --prefix openssl
to probe openssl libraries. But it turns out thatbrew --prefix openssl
prints a directory even if openssl formula is not installed. I'm sorry.This PR adds
--installed
option tobrew --prefix
command so thatbrew --prefix
prints a directory only if openssl formula is actually installed.