mirror of https://github.com/halo-dev/halo
Fix the problem of being unable to commit (#5362)
#### What type of PR is this? /kind cleanup /area core #### What this PR does / why we need it: The wrong `pre-commit` will prevent us from making a Git commit. The problem was caused by <https://github.com/halo-dev/halo/pull/5314>. ```bash ui/.husky/pre-commit: line 4: cd: console: No such file or directory husky - pre-commit hook exited with code 1 (error) ``` #### Does this PR introduce a user-facing change? ```release-note None ```pull/5364/head
parent
9178ad0e22
commit
07854c993f
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
cd console && pnpm exec lint-staged
|
cd ui && pnpm exec lint-staged
|
||||||
|
|
Loading…
Reference in New Issue