diff --git a/spec/fixtures/pre-commit b/spec/fixtures/pre-commit index 3d435141..d17386e8 100644 --- a/spec/fixtures/pre-commit +++ b/spec/fixtures/pre-commit @@ -14,19 +14,19 @@ call_lefthook() { if lefthook -h >/dev/null 2>&1 then - eval $1 + eval lefthook $1 elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook" then - eval $dir/node_modules/@arkweid/lefthook/bin/$1 + eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook $1" elif bundle exec lefthook -h >/dev/null 2>&1 then - bundle exec $1 + bundle exec "lefthook $1" elif npx lefthook -h >/dev/null 2>&1 then - npx $1 + npx "lefthook $1" elif yarn lefthook -h >/dev/null 2>&1 then - yarn $1 + yarn "lefthook $1" else echo "Can't find lefthook in PATH" fi @@ -34,4 +34,4 @@ call_lefthook() -call_lefthook "lefthook run pre-commit $@" +call_lefthook "run pre-commit $@" diff --git a/spec/fixtures/pre-push b/spec/fixtures/pre-push index 34d0b46b..0f8af80f 100644 --- a/spec/fixtures/pre-push +++ b/spec/fixtures/pre-push @@ -14,19 +14,19 @@ call_lefthook() { if lefthook -h >/dev/null 2>&1 then - eval $1 + eval lefthook $1 elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook" then - eval $dir/node_modules/@arkweid/lefthook/bin/$1 + eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook $1" elif bundle exec lefthook -h >/dev/null 2>&1 then - bundle exec $1 + bundle exec "lefthook $1" elif npx lefthook -h >/dev/null 2>&1 then - npx $1 + npx "lefthook $1" elif yarn lefthook -h >/dev/null 2>&1 then - yarn $1 + yarn "lefthook $1" else echo "Can't find lefthook in PATH" fi @@ -34,4 +34,4 @@ call_lefthook() -call_lefthook "lefthook run pre-push $@" +call_lefthook "run pre-push $@"