mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
test: fix chrome detection in macOS Catalina (#6638)
This commit is contained in:
parent
95303180a8
commit
edd054e2ed
@ -47,8 +47,8 @@ export default class ChromeDetector {
|
||||
}
|
||||
execSync(
|
||||
`${LSREGISTER} -dump` +
|
||||
' | grep -E -i \'(google chrome( canary)?|chromium).app$\'' +
|
||||
' | awk \'{$1=""; print $0}\''
|
||||
" | grep -E -i -o '/.+(google chrome( canary)?|chromium)\\.app(\\s|$)'" +
|
||||
" | grep -E -v 'Caches|TimeMachine|Temporary|/Volumes|\\.Trash'"
|
||||
)
|
||||
.toString()
|
||||
.split(newLineRegex)
|
||||
|
Loading…
Reference in New Issue
Block a user