mirror of
https://github.com/2004Scape/Website.git
synced 2026-11-22 21:50:40 -05:00
18 lines
460 B
Plaintext
18 lines
460 B
Plaintext
# Handle Github Desktop bug on Windows
|
|
# https://github.com/typicode/husky/issues/1072
|
|
if [ "$OS" = "Windows_NT" ]; then
|
|
npx.cmd --no -- @commitlint/cli --edit $1
|
|
exit 0
|
|
fi
|
|
|
|
case "$(uname)" in
|
|
# Handle Github Desktop bug on Windows systems with WSL installed
|
|
# https://github.com/desktop/desktop/issues/12562
|
|
*CYGWIN* | *MINGW* | *MSYS*)
|
|
npx.cmd --no -- @commitlint/cli --edit $1
|
|
;;
|
|
*)
|
|
npx --no -- @commitlint/cli --edit $1
|
|
;;
|
|
esac
|