10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
brew info
1 parent 144e61c commit 583d126Copy full SHA for 583d126
travis_osx_brew_cache.sh
@@ -307,7 +307,9 @@ function _brew_is_bottle_available {
307
local PACKAGE;PACKAGE="${1:?}"
308
local VAR_KEG_ONLY="$2"
309
310
- local INFO;INFO="$(brew info "$PACKAGE" | head -n 1)"
+ # `brew info` prints "Error: Broken pipe" if piped directly to `head` and the info is long
311
+ # 141 = 128 + SIGPIPE
312
+ local INFO;INFO="$((brew info "$PACKAGE" | cat || test $? -eq 141) | head -n 1)"
313
if [ -n 429F "$VAR_KEG_ONLY" ]; then
314
if grep -qwF '[keg-only]' <<<"$INFO"; then
315
eval "${VAR_KEG_ONLY}=1"
0 commit comments