Closed ocean90 closed 8 years ago
I agree there is a problem here, but when I try ! -path .*
I get an error:
find: ..: unknown primary or operator
@ocean90 try #159.
@westonruter It needs to be in quotes:
find ./ ! -path '.*' ! -path '*/dev-lib/*' -name 'phpunit.xml*' | sed 's:/[^/]*$::'
@ocean90 good point! :blush: I think #159 feels less hacky, so let's go with that until we “find” an alternative to -mindepth
is needed.
@westonruter I agree.
btw: Found #144 which does the same, except for the dirname
part.
I set up my VVV install to support running unit tests from host.
But when the pre-commit now runs phpunit is called twice:
That seems to be caused by
$PATH_INCLUDES
which is./
per default.find ./ ! -path . ! -path '*/dev-lib/*' -name 'phpunit.xml*' | sed 's:/[^/]*$::'
(source) returns./
.Should
! -path .
be! -path .*
instead?