From f3c722722f8fe299e869640920ad9c44208a98f6 Mon Sep 17 00:00:00 2001 From: Edwin Kofler <24364012+hyperupcall@users.noreply.github.com> Date: Sun, 20 Feb 2022 09:14:19 -0800 Subject: [PATCH] fix: actually set 'husky_skip_init' as readonly (#1104) 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 a9bd5ee2f..98fac11c5 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="$?"