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.
  • Loading branch information
hyperupcall authored and nikoladavitkovski committed Sep 2, 2022
1 parent 361540a commit f3c7227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion husky.sh
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 f3c7227

Please sign in to comment.