-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
$HUSKY
is evaluated before the configs are sourced, so its presence doesn't trigger exit 0
:
Lines 2 to 14 in 095a4fe
H="$HUSKY" | |
[ "$H" = "2" ] && set -x | |
h="${0##*/}" | |
s="${0%/*/*}/$h" | |
[ ! -f "$s" ] && exit 0 | |
for f in "${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh" "$HOME/.huskyrc"; do | |
# shellcheck disable=SC1090 | |
[ -f "$f" ] && . "$f" | |
done | |
[ "$H" = "0" ] && exit 0 |
Are the docs out-ot-date and I'm expected to put export H=0
in init.sh
? Or something else is wrong?
Metadata
Metadata
Assignees
Labels
No labels