Skip to content

Commit 2187ced

Browse files
miniconda seems to install in different locations now
1 parent ae85031 commit 2187ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ path_if_exist <- function(...) {
2424

2525
is_conda_installation <- function() {
2626
grepl(
27-
"conda3?/envs/r-precommit/(bin|Scripts)/pre-commit(\\.exe)?",
27+
"(r-miniconda-.*|conda3?)/envs/r-precommit/(bin|Scripts)/pre-commit(\\.exe)?",
2828
getOption("precommit.executable")
2929
)
3030
}

0 commit comments

Comments
 (0)