Skip to content

Commit

Permalink
fix: actually set 'husky_skip_init' as readonly (#1104)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hyperupcall authored Feb 20, 2022
1 parent 222b1de commit 82b0c59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion husky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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="$?"

Expand Down

0 comments on commit 82b0c59

Please sign in to comment.