Skip to content

Commit ceb4d98

Browse files
committed
change pre-comit hook
1 parent 773a8e2 commit ceb4d98

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

.husky/pre-commit

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
# Detect /dev/tty using readlink and fd/2
5-
tty=$(readlink /proc/$$/fd/2)
6-
7-
# Use the detected tty for redirection
8-
if [[ -n "$tty" ]]; then
9-
exec >"$tty" 2>&1
10-
else
11-
echo "Could not detect /dev/tty"
12-
fi
13-
144
yarn lint-staged

0 commit comments

Comments
 (0)