MCPcopy
hub / github.com/ntfstool/ntfstool / systemName

Function systemName

src/common/utils/AlfwShell.js:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 * @returns {Promise<any>}
31 */
32export function systemName() {
33 return new Promise((resolve, reject) => {
34 execShell("whoami").then(res => {
35 resolve(res ? res : "root")
36 });
37 })
38}
39
40/**
41 * exec the shell code by common user

Callers 1

showSudoFunction · 0.90

Calls 1

execShellFunction · 0.85

Tested by

no test coverage detected