mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-19 23:21:09 +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(
|
execSync(
|
||||||
`${LSREGISTER} -dump` +
|
`${LSREGISTER} -dump` +
|
||||||
' | grep -E -i \'(google chrome( canary)?|chromium).app$\'' +
|
" | grep -E -i -o '/.+(google chrome( canary)?|chromium)\\.app(\\s|$)'" +
|
||||||
' | awk \'{$1=""; print $0}\''
|
" | grep -E -v 'Caches|TimeMachine|Temporary|/Volumes|\\.Trash'"
|
||||||
)
|
)
|
||||||
.toString()
|
.toString()
|
||||||
.split(newLineRegex)
|
.split(newLineRegex)
|
||||||
|
Loading…
Reference in New Issue
Block a user