Skip to content

Commit

Permalink
Disable enable stdin if terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Dec 28, 2018
1 parent 0f038a5 commit 942df81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/installer/__tests__/__snapshots__/getScript.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ if ! command -v node >/dev/null 2>&1; then
fi
if [ -f \\"$scriptPath\\" ]; then
if [ -t 1 ]; then
exec < /dev/tty
fi
# if [ -t 1 ]; then
# exec < /dev/tty
# fi
if [ -f ~/.huskyrc ]; then
debug \\"source ~/.huskyrc\\"
source ~/.huskyrc
Expand Down Expand Up @@ -69,9 +69,9 @@ debug() {
debug \\"$hookName hook started...\\"
if [ -f \\"$scriptPath\\" ]; then
if [ -t 1 ]; then
exec < /dev/tty
fi
# if [ -t 1 ]; then
# exec < /dev/tty
# fi
if [ -f ~/.huskyrc ]; then
debug \\"source ~/.huskyrc\\"
source ~/.huskyrc
Expand Down
6 changes: 3 additions & 3 deletions src/installer/getScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ fi
: ''
}
if [ -f "$scriptPath" ]; then
if [ -t 1 ]; then
exec < /dev/tty
fi
# if [ -t 1 ]; then
# exec < /dev/tty
# fi
if [ -f ${huskyrc} ]; then
debug "source ${huskyrc}"
source ${huskyrc}
Expand Down

0 comments on commit 942df81

Please sign in to comment.