summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLiang Yi <[email protected]>2021-09-01 00:36:39 +0800
committerLiang Yi <[email protected]>2021-09-01 00:36:39 +0800
commitc11483ecc1be444154ef4e638ea107c4fd3674d4 (patch)
treeb5163bda35278a89614073ac49de3f2b380051b1
parent706039af646a85fb66f11b6514dd12337858bf95 (diff)
downloadbazarr-c11483ecc1be444154ef4e638ea107c4fd3674d4.tar.gz
bazarr-c11483ecc1be444154ef4e638ea107c4fd3674d4.zip
no log: Fix a protential issue which may crash the release pipelinev0.9.8
-rwxr-xr-xfrontend/.husky/pre-commit4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/.husky/pre-commit b/frontend/.husky/pre-commit
index c306ede8a..3f1364f9c 100755
--- a/frontend/.husky/pre-commit
+++ b/frontend/.husky/pre-commit
@@ -1,5 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
-cd frontend || exit
+[ -n "$CI" ] && exit 0
+
+cd frontend
npx pretty-quick --staged