# Handle Github Desktop bug on Windows
# https://github.com/typicode/husky/issues/1072
if [ "$OS" = "Windows_NT" ]; then
  bun.exe x lint-staged --verbose
  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*)
    bun.exe x lint-staged --verbose
    ;;
  *)
    bun x lint-staged --verbose
    ;;
esac
