MCPcopy
hub / github.com/spicetify/cli / Check

Function Check

src/utils/isAdmin/unix.go:8–13  ·  view source on GitHub ↗
(bypassAdminCheck bool)

Source from the content-addressed store, hash-verified

6import "os"
7
8func Check(bypassAdminCheck bool) bool {
9 if bypassAdminCheck {
10 return false
11 }
12 return os.Geteuid() == 0
13}

Callers 1

initFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected