File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,20 @@ srcdir="$(cd "$(dirname "$src")" && pwd)"
52
52
53
53
# Automatically install Pre-Commit Git hooks if not already present
54
54
55
- if ! type -P pre-commit & > /dev/null &&
56
- uname -s | grep -q Darwin &&
57
- type -P brew & > /dev/null; then
58
- echo
59
- echo " Pre-commit is not installed - installing now..."
60
- echo
61
- brew install pre-commit
62
- echo
55
+ if ! type -P pre-commit & > /dev/null; then
56
+ if uname -s | grep -q Darwin &&
57
+ type -P brew & > /dev/null; then
58
+ echo
59
+ echo " Pre-commit is not installed - installing now using Homebrew..."
60
+ echo
61
+ brew install pre-commit
62
+ echo
63
+ elif type -P pip & > /dev/null; then
64
+ echo
65
+ echo " Pre-commit is not installed - installing now using Pip..."
66
+ echo
67
+ pip install pre-commit
68
+ fi
63
69
fi
64
70
65
71
if [ -f .pre-commit-config.yaml ] &&
@@ -188,6 +194,8 @@ if [ -f "$srcdir/.envrc-kubernetes" ]; then
188
194
load_if_exists .envrc-kubernetes docker-desktop
189
195
fi
190
196
197
+ # ============================================================================ #
198
+ # . E n v
191
199
# ============================================================================ #
192
200
193
201
echo
You can’t perform that action at this time.
0 commit comments