From c500062c965b5a05256ea2cc5023b7936bd1695d Mon Sep 17 00:00:00 2001 From: Travis Neeley Date: Mon, 9 Oct 2017 18:09:43 -0500 Subject: [PATCH] Added ggrep detection for OSX --- AAXtoMP3 | 1 + 1 file changed, 1 insertion(+) diff --git a/AAXtoMP3 b/AAXtoMP3 index 731281e..09176ed 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -5,6 +5,7 @@ set -o errexit -o noclobber -o nounset -o pipefail codec=libmp3lame extension=mp3 mode=chaptered +grep=$(grep --version | grep -q GNU && echo "grep" || echo "ggrep") if [ "$#" -eq 0 ]; then echo "Usage: bash AAXtoMP3.sh [--flac] [--single] AUTHCODE {FILES}"