Skip to content

Commit

Permalink
fix: actually set 'husky_skip_init' as readonly (typicode#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.
hyperupcall authored and nikoladavitkovski committed Sep 5, 2022
1 parent 8e1ff76 commit d27582f
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
@@ -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="$?"

0 comments on commit d27582f

Please sign in to comment.