MCPcopy Create free account
hub / github.com/Azure/powershell / _readLinuxVersionFile

Function _readLinuxVersionFile

lib/index.js:3781–3792  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3779}
3780exports._getOsVersion = _getOsVersion;
3781function _readLinuxVersionFile() {
3782 const lsbReleaseFile = '/etc/lsb-release';
3783 const osReleaseFile = '/etc/os-release';
3784 let contents = '';
3785 if (fs.existsSync(lsbReleaseFile)) {
3786 contents = fs.readFileSync(lsbReleaseFile).toString();
3787 }
3788 else if (fs.existsSync(osReleaseFile)) {
3789 contents = fs.readFileSync(osReleaseFile).toString();
3790 }
3791 return contents;
3792}
3793exports._readLinuxVersionFile = _readLinuxVersionFile;
3794//# sourceMappingURL=manifest.js.map
3795

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…