Skip to content

Commit

Permalink
Fix: unbound variable (#1359)
Browse files Browse the repository at this point in the history
* fix: unbound variable

* fix: unbound variable
  • Loading branch information
typicode authored Jan 25, 2024
1 parent e7ada20 commit 797dfdf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions husky.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env sh
[ "$HUSKY" = "2" ] && set -x
H="$HUSKY"
[ "$H" = "2" ] && set -x
h="${0##*/}"
s="${0%/*/*}/$h"

Expand All @@ -10,7 +11,7 @@ for f in "${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh" "$HOME/.huskyrc.sh";
[ -f "$f" ] && . "$f"
done

[ "$HUSKY" = "0" ] && exit 0
[ "$H" = "0" ] && exit 0

sh -e "$s" "$@"
c=$?
Expand Down

0 comments on commit 797dfdf

Please sign in to comment.