From b56248fa00a64f2373b1ae0d61abd565a0bcf5a7 Mon Sep 17 00:00:00 2001 From: Simon G Date: Mon, 16 Jan 2023 21:20:37 +0100 Subject: [PATCH] chore(husky): use recommended shebang to make scripts portable - ref: typicode/husky#1051 --- .husky/commit-msg | 2 +- .husky/post-merge | 2 +- .husky/pre-commit | 2 +- .husky/pre-push | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 4243503..26996ec 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh . "$(dirname "$0")/_/husky.sh" npx --no -- commitlint --edit $1 || { echo "Try \033[1;32mnpx git-cz --disable-emoji\033[0;37m to commit and be align with the conventions or use \033[1;32git commit -m \"yolo!\" --no-verify\033[0;37m to bypass the commit-msg hook."; exit 1; } diff --git a/.husky/post-merge b/.husky/post-merge index 5129cc4..a4530ec 100755 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh . "$(dirname "$0")/_/husky.sh" # Install any missing dependencies since package.json changed diff --git a/.husky/pre-commit b/.husky/pre-commit index 3f831e7..49f273e 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh . "$(dirname "$0")/_/husky.sh" npx --no lint-staged diff --git a/.husky/pre-push b/.husky/pre-push index caac488..bf3f42d 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh . "$(dirname "$0")/_/husky.sh" npm run test -- --onlyChanged --watchAll=false