From de6d9ccb76180c1715b44b65305a9aac9084c181 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 14 Nov 2022 08:53:44 +0000 Subject: [PATCH] chore(.husky): shell path and arg updates (#3422) * chore(.husky): shell path and arg updates * chore(.husky): remove unnecessary .gitignore --- .husky/.gitignore | 1 - .husky/commit-msg | 4 ++-- .husky/pre-commit | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 .husky/.gitignore diff --git a/.husky/.gitignore b/.husky/.gitignore deleted file mode 100644 index 31354ec138..0000000000 --- a/.husky/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_ diff --git a/.husky/commit-msg b/.husky/commit-msg index effdb7aaed..52896f4666 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,4 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" node @commitlint/cli/lib/cli.js --edit $1 \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index dc0378c348..b946a2c596 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" yarn lint-staged \ No newline at end of file