Skip to content

Commit

Permalink
Change the grep regex-pattern to a platform independent one
Browse files Browse the repository at this point in the history
  • Loading branch information
Andor Dávid committed Jun 1, 2016
1 parent be09550 commit ef5c744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _common
Original file line number Diff line number Diff line change
Expand Up @@ -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=''
Expand Down

0 comments on commit ef5c744

Please sign in to comment.