MCPcopy Index your code
hub / github.com/TruthHun/BookStack / IsInstalledChrome

Function IsInstalledChrome

utils/dependency.go:106–109  ·  view source on GitHub ↗

IsInstalledChrome 是否安装了Chrome

(chrome string)

Source from the content-addressed store, hash-verified

104
105// IsInstalledChrome 是否安装了Chrome
106func IsInstalledChrome(chrome string) (err error) {
107 _, err = ExecCommand(chrome, []string{"--version"})
108 return
109}
110
111// IsInstalledCalibre 是否安装了calibre
112func IsInstalledCalibre(calibre string) (err error) {

Callers 1

Calls 1

ExecCommandFunction · 0.85

Tested by

no test coverage detected