diff --git a/.husky/post-checkout b/.husky/post-checkout index 94c35d333..056bfb428 100755 --- a/.husky/post-checkout +++ b/.husky/post-checkout @@ -1,4 +1,4 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" npx run-if-changed diff --git a/.husky/post-commit b/.husky/post-commit index 94c35d333..056bfb428 100755 --- a/.husky/post-commit +++ b/.husky/post-commit @@ -1,4 +1,4 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" npx run-if-changed diff --git a/.husky/post-merge b/.husky/post-merge index 94c35d333..056bfb428 100755 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -1,4 +1,4 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" npx run-if-changed diff --git a/.husky/post-rewrite b/.husky/post-rewrite index 94c35d333..056bfb428 100755 --- a/.husky/post-rewrite +++ b/.husky/post-rewrite @@ -1,4 +1,4 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" npx run-if-changed diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af21989..d24fdfc60 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" npx lint-staged diff --git a/.husky/pre-push b/.husky/pre-push index dc2d9ac8f..8b51deba9 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1,4 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" npm test && npm run build && npm run check-readme