#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Klasör adını güncelleyin
rsapath="src/features/modules/payment/masterpass/lib/rsa"

# Skip the check for files in the specified folder during the commit process with Husky
if git diff --cached --name-only --no-prefix | grep -E "^$rsapath/"; then
  echo "Skipping the pre-commit check for files in the folder: $klasorAdi"
  exit 0
fi

# Skip the check of .yaml files during commit process with Husky
if git diff --cached --name-only --no-prefix | grep -E '\.yaml$'; then
  echo "Skipping the pre-commit check for .yaml files."
  exit 0
fi

# Disable concurent to run `check-types` after ESLint in lint-staged
cd "$(dirname "$0")/.." && npx lint-staged --concurrent false
