# HG changeset patch # User KrzGalcz # Date 1731508820 -3600 # Node ID 074ea5523f84f1a86a827dc13f941056be87103b # Parent bf90446a27cb5c54dfa0a4fda87d2e61c35cd88e Fix typo in validation for mac diff --git a/pre-commit-src/pre-commit-script.sh b/pre-commit-src/pre-commit-script.sh --- a/pre-commit-src/pre-commit-script.sh +++ b/pre-commit-src/pre-commit-script.sh @@ -28,17 +28,17 @@ testing=false # In general running this script directly within windows is very slow, so use of WSL2 is recommended but in case of some tests performed in windows, those lines are still needed. if [ $OSTYPE = 'msys' ] || [ $OSTYPE = 'cygwin' ]; then alias jq='jq -b' else alias jq='command jq' fi # Mac grep doesn't have Perl regex, therefor it needs to be checked with another method -if [ $OSTYPE = 'darwin'* ]; then +if [[ $OSTYPE == 'darwin'* ]]; then alias grep='ggrep' else alias grep='command grep' fi # In case on WSL (Windows) it's faster to invoke git.exe directly from Windows (since the files are in the windows FS). if [ -n "${WSL_DISTRO_NAME:-}" ]; then alias git='git.exe'