Skip to content

Commit

Permalink
Pattern match Windows correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ashbythorpe committed Oct 25, 2023
1 parent bc68bd9 commit 460669f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/chrome.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ chrome_check <- function(verbose, check = TRUE) {
cyml[[platvec]] <-
switch(Sys.info()["sysname"],
Linux = grep(os_arch("linux"), cyml[[platvec]], value = TRUE),
Windows = grep("win", cyml[[platvec]], value = TRUE),
Windows = grep(os_arch("win"), cyml[[platvec]], value = TRUE),
Darwin = grep(mac_machine(), cyml[[platvec]], value = TRUE),
stop("Unknown OS")
)
Expand Down

0 comments on commit 460669f

Please sign in to comment.