From e62ceb1caade7f1fe1b6a5864f4c63cc7554a067 Mon Sep 17 00:00:00 2001 From: nathandao Date: Mon, 27 Sep 2021 10:57:17 +0300 Subject: [PATCH] Use /usr/bin/env sh instead of direct path --- .husky/pre-commit | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 7b9f1fb5d..ffc4c68ff 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh . "$(dirname "$0")/_/husky.sh" node bin/lint-staged.js diff --git a/README.md b/README.md index 9886345f6..8b6058912 100644 --- a/README.md +++ b/README.md @@ -369,7 +369,7 @@ All examples assume you've already set up lint-staged in the `package.json` file In `.husky/pre-commit` ```shell -#!/bin/sh +#!/usr/bin/env sh . "$(dirname "$0")/_/husky.sh" npx lint-staged