File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ if ! command -v node >/dev/null 2>&1; then
29
29
fi
30
30
31
31
if [ -f \\"$scriptPath\\" ]; then
32
+ if [ -t 1 ]; then
33
+ exec < /dev/tty
34
+ fi
32
35
if [ -f ~/.huskyrc ]; then
33
36
debug \\"source ~/.huskyrc\\"
34
37
source ~/.huskyrc
@@ -66,6 +69,9 @@ debug() {
66
69
debug \\"$hookName hook started...\\"
67
70
68
71
if [ -f \\"$scriptPath\\" ]; then
72
+ if [ -t 1 ]; then
73
+ exec < /dev/tty
74
+ fi
69
75
if [ -f ~/.huskyrc ]; then
70
76
debug \\"source ~/.huskyrc\\"
71
77
source ~/.huskyrc
Original file line number Diff line number Diff line change 64
64
: ''
65
65
}
66
66
if [ -f "$scriptPath" ]; then
67
+ if [ -t 1 ]; then
68
+ exec < /dev/tty
69
+ fi
67
70
if [ -f ${ huskyrc } ]; then
68
71
debug "source ${ huskyrc } "
69
72
source ${ huskyrc }
You can’t perform that action at this time.
0 commit comments