From ef5c744a9cf1261e670d003d66b558a5f55bf8d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andor=20D=C3=A1vid?= Date: Wed, 1 Jun 2016 13:56:52 +0200 Subject: [PATCH] Change the grep regex-pattern to a platform independent one --- _common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_common b/_common index cddc782..7e08abe 100644 --- a/_common +++ b/_common @@ -4,9 +4,9 @@ hook=$(basename "${0}") # @todo Better detection for executables: php, composer.phar and robo. robo="$(composer config 'bin-dir')/robo" -# Exit without error if "robo" doesn't exists or it has not corresponding task. +# Exit without error if "robo" doesn't exists or it has no corresponding task. test -x "$robo" || exit 0 -"$robo" list --raw | grep -P "^githook:$hook($|\s)" || exit 0 +"$robo" help "githook:$hook" 1> /dev/null 2>&1 || exit 0 hasInput='0' input=''