From e0051d17d89f25f88c65e1b7fa6e934e44166682 Mon Sep 17 00:00:00 2001 From: Chris Simons Date: Sat, 2 May 2020 13:58:22 -0700 Subject: [PATCH] Homebrew (Ruby) throws an error when it gets `SIGPIPE` from the `--max-count` on `grep`. --- dist/macos/bundle/build_dist.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/macos/bundle/build_dist.sh.in b/dist/macos/bundle/build_dist.sh.in index f9565d63..2bd73027 100755 --- a/dist/macos/bundle/build_dist.sh.in +++ b/dist/macos/bundle/build_dist.sh.in @@ -46,7 +46,7 @@ fi # Check for macdeployqt on Homebrew if which -s brew ; then info "Homebrew found, searching for macdeployqt" - DEPLOYQT="$(brew list qt | grep --only --max-count 1 '/.*macdeployqt')" + DEPLOYQT="$(brew list qt | grep --only '/.*macdeployqt' | head -1)" if [ ! -x "$DEPLOYQT" ]; then error Please install package qt exit 1