[Linux] Minor documentation improvements (#6749)

This commit is contained in:
Maxim Lobanov
2022-12-13 17:07:05 +01:00
committed by GitHub
parent 6033af8dd1
commit e63632f872
9 changed files with 74 additions and 129 deletions

View File

@@ -29,13 +29,17 @@ function Get-CommandResult {
}
}
function Get-OSName {
lsb_release -ds
function Get-OSVersionShort {
$(Get-OSVersionFull) | Take-OutputPart -Delimiter '.' -Part 0,1
}
function Get-OSVersionFull {
lsb_release -ds | Take-OutputPart -Part 1, 2
}
function Get-KernelVersion {
$kernelVersion = uname -r
return "Linux kernel version: $kernelVersion"
return $kernelVersion
}
function Test-IsUbuntu18 {