Skip to content

Commit 7dbcaca

Browse files
committed
workflow: temporarily fix desktop/desktop#12562
1 parent dc2c37d commit 7dbcaca

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.husky/commit-msg

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

4-
npx --no -- commitlint --edit ${1}
4+
case `uname` in
5+
# bug on Windows/Github Desktop: add `.cmd` extension fixes it
6+
*CYGWIN*|*MINGW*|*MSYS*)
7+
npx.cmd --no -- commitlint --edit ${1}
8+
;;
9+
*)
10+
npx --no -- commitlint --edit ${1}
11+
;;
12+
esac

.husky/pre-commit

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

4-
npx lint-staged
4+
case `uname` in
5+
# bug on Windows/Github Desktop: add `.cmd` extension fixes it
6+
*CYGWIN*|*MINGW*|*MSYS*)
7+
npx.cmd lint-staged
8+
;;
9+
*)
10+
npx lint-staged
11+
;;
12+
esac

0 commit comments

Comments
 (0)