[Ubuntu] Add net-tools (#2838)

* add net-tools

* fix output
This commit is contained in:
Aleksandr Chebotov
2021-03-04 18:30:40 +03:00
committed by GitHub
parent 8a17c5ea71
commit 40f571a753
6 changed files with 14 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ $toolsList = @(
(Get-M4Version),
(Get-HGVersion),
(Get-MinikubeVersion),
(Get-NetToolsVersion),
(Get-NewmanVersion),
(Get-NvmVersion),
(Get-PackerVersion),

View File

@@ -174,6 +174,11 @@ function Get-MediainfoVersion {
return "MediaInfo $mediainfoVersion"
}
function Get-NetToolsVersion {
$netToolsVersion = dpkg-query --showformat='${Version}' --show net-tools | Take-OutputPart -Part 0 -Delimiter '-' | Take-OutputPart -Part 0 -Delimiter '+'
return "net-tools $netToolsVersion"
}
function Get-NewmanVersion {
return "Newman $(newman --version)"
}

View File

@@ -34,6 +34,11 @@ Describe "Apt" {
$toolName = "tr"
}
if ($toolName -eq "net-tools")
{
$toolName = "netstat"
}
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
}
}

View File

@@ -194,6 +194,7 @@
"m4",
"mediainfo",
"netcat",
"net-tools",
"p7zip-full",
"parallel",
"pass",

View File

@@ -188,6 +188,7 @@
"m4",
"mediainfo",
"netcat",
"net-tools",
"parallel",
"pass",
"p7zip-full",

View File

@@ -168,6 +168,7 @@
"m4",
"mediainfo",
"netcat",
"net-tools",
"p7zip-full",
"parallel",
"pass",