diff --git a/.husky/_/husky.sh b/.husky/_/husky.sh index 6809ccca28..f9d0637909 100644 --- a/.husky/_/husky.sh +++ b/.husky/_/husky.sh @@ -1,31 +1,9 @@ -#!/bin/sh -if [ -z "$husky_skip_init" ]; then - debug () { - if [ "$HUSKY_DEBUG" = "1" ]; then - echo "husky (debug) - $1" - fi - } +echo "husky - DEPRECATED - readonly hook_name="$(basename "$0")" - debug "starting $hook_name..." +Please remove the following two lines from $0: - if [ "$HUSKY" = "0" ]; then - debug "HUSKY env variable is set to 0, skipping hook" - exit 0 - fi +#!/usr/bin/env sh +. \"\$(dirname -- \"\$0\")/_/husky.sh\" - if [ -f ~/.huskyrc ]; then - debug "sourcing ~/.huskyrc" - . ~/.huskyrc - fi - - export readonly husky_skip_init=1 - sh -e "$0" "$@" - exitCode="$?" - - if [ $exitCode != 0 ]; then - echo "husky - $hook_name hook exited with code $exitCode (error)" - fi - - exit $exitCode -fi +They WILL FAIL in v10.0.0 +" \ No newline at end of file