From 2e4da5ce986a917bc73ff08d0f85d58b58fdb6a4 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Wed, 16 Feb 2022 05:07:40 -0800 Subject: [PATCH] fix: Actually set 'husky_skip_init' as readonly Previously, the script would export the empty 'readonly' variable, along with 'husky_skip_init' which has a value of 1. Now, the script sets 'husky_skip_init' to 1, and properly gives is the readonly and exported attributes. --- husky.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/husky.sh b/husky.sh index 6809ccca2..7be3296a4 100644 --- a/husky.sh +++ b/husky.sh @@ -19,7 +19,8 @@ if [ -z "$husky_skip_init" ]; then . ~/.huskyrc fi - export readonly husky_skip_init=1 + readonly husky_skip_init=1 + export husky_skip_init sh -e "$0" "$@" exitCode="$?"