Skip to content

Commit

Permalink
updated .envrc
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Aug 9, 2024
1 parent 5eb5807 commit bd73b45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ srcdir="$(cd "$(dirname "$src")" && pwd)"

# Automatically install Pre-Commit Git hooks if not already present

if [ -f .pre-commit-config.yaml ]; then
if [ -d .git ]; then
if ! [ -f .git/hooks/pre-commit ]; then
pre-commit install
fi
if [ -f .pre-commit-config.yaml ] &&
[ -d .git ] &&
type -P pre-commit &>/dev/null; then
if ! [ -f .git/hooks/pre-commit ]; then
pre-commit install
fi
fi

Expand Down

0 comments on commit bd73b45

Please sign in to comment.