File tree Expand file tree Collapse file tree 4 files changed +431
-163
lines changed Expand file tree Collapse file tree 4 files changed +431
-163
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ call_lefthook()
3333 then
3434 " $dir /node_modules/lefthook/bin/index.js" " $@ "
3535
36- elif go tool lefthook -h > /dev/null 2>&1
37- then
38- go tool lefthook " $@ "
3936 elif bundle exec lefthook -h > /dev/null 2>&1
4037 then
4138 bundle exec lefthook " $@ "
@@ -45,21 +42,12 @@ call_lefthook()
4542 elif pnpm lefthook -h > /dev/null 2>&1
4643 then
4744 pnpm lefthook " $@ "
48- elif swift package lefthook > /dev/null 2>&1
45+ elif swift package plugin lefthook > /dev/null 2>&1
4946 then
50- swift package --build-path .build/lefthook -- disable-sandbox lefthook " $@ "
47+ swift package --disable-sandbox plugin lefthook " $@ "
5148 elif command -v mint > /dev/null 2>&1
5249 then
5350 mint run csjones/lefthook-plugin " $@ "
54- elif uv run lefthook -h > /dev/null 2>&1
55- then
56- uv run lefthook " $@ "
57- elif mise exec -- lefthook -h > /dev/null 2>&1
58- then
59- mise exec -- lefthook " $@ "
60- elif devbox run lefthook -h > /dev/null 2>&1
61- then
62- devbox run lefthook " $@ "
6351 else
6452 echo " Can't find lefthook in PATH"
6553 fi
Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ call_lefthook()
3333 then
3434 " $dir /node_modules/lefthook/bin/index.js" " $@ "
3535
36- elif go tool lefthook -h > /dev/null 2>&1
37- then
38- go tool lefthook " $@ "
3936 elif bundle exec lefthook -h > /dev/null 2>&1
4037 then
4138 bundle exec lefthook " $@ "
@@ -45,21 +42,12 @@ call_lefthook()
4542 elif pnpm lefthook -h > /dev/null 2>&1
4643 then
4744 pnpm lefthook " $@ "
48- elif swift package lefthook > /dev/null 2>&1
45+ elif swift package plugin lefthook > /dev/null 2>&1
4946 then
50- swift package --build-path .build/lefthook -- disable-sandbox lefthook " $@ "
47+ swift package --disable-sandbox plugin lefthook " $@ "
5148 elif command -v mint > /dev/null 2>&1
5249 then
5350 mint run csjones/lefthook-plugin " $@ "
54- elif uv run lefthook -h > /dev/null 2>&1
55- then
56- uv run lefthook " $@ "
57- elif mise exec -- lefthook -h > /dev/null 2>&1
58- then
59- mise exec -- lefthook " $@ "
60- elif devbox run lefthook -h > /dev/null 2>&1
61- then
62- devbox run lefthook " $@ "
6351 else
6452 echo " Can't find lefthook in PATH"
6553 fi
Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ call_lefthook()
3333 then
3434 " $dir /node_modules/lefthook/bin/index.js" " $@ "
3535
36- elif go tool lefthook -h > /dev/null 2>&1
37- then
38- go tool lefthook " $@ "
3936 elif bundle exec lefthook -h > /dev/null 2>&1
4037 then
4138 bundle exec lefthook " $@ "
@@ -45,21 +42,12 @@ call_lefthook()
4542 elif pnpm lefthook -h > /dev/null 2>&1
4643 then
4744 pnpm lefthook " $@ "
48- elif swift package lefthook > /dev/null 2>&1
45+ elif swift package plugin lefthook > /dev/null 2>&1
4946 then
50- swift package --build-path .build/lefthook -- disable-sandbox lefthook " $@ "
47+ swift package --disable-sandbox plugin lefthook " $@ "
5148 elif command -v mint > /dev/null 2>&1
5249 then
5350 mint run csjones/lefthook-plugin " $@ "
54- elif uv run lefthook -h > /dev/null 2>&1
55- then
56- uv run lefthook " $@ "
57- elif mise exec -- lefthook -h > /dev/null 2>&1
58- then
59- mise exec -- lefthook " $@ "
60- elif devbox run lefthook -h > /dev/null 2>&1
61- then
62- devbox run lefthook " $@ "
6351 else
6452 echo " Can't find lefthook in PATH"
6553 fi
You can’t perform that action at this time.
0 commit comments