[macOS] Add GNU Tar (#2163)

* added gnu-tar

* rework gnu-tar installation

* fix SoftwareReport for gnu-tar

* add bsdtar to SoftwareReport

* updated SoftwareReport

Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
This commit is contained in:
Nikita Bykov
2020-12-15 10:43:27 +03:00
committed by GitHub
parent 8fb48a5c06
commit d729747846
3 changed files with 10 additions and 1 deletions

View File

@@ -140,6 +140,8 @@ $helmVersion = Run-Command "helm version --short"
$mongo = Run-Command "mongo --version" | Select-String "MongoDB shell version" | Take-Part -Part 3
$mongod = Run-Command "mongod --version" | Select-String "db version " | Take-Part -Part 2
$p7zip = Run-Command "7z i" | Select-String "7-Zip" | Take-Part -Part 0,2
$gnuTar = Run-Command "gtar --version" | Select-String "tar" | Take-Part -Part 3
$bsdtar = Run-Command "tar --version" | Take-Part -Part 1
$markdown += New-MDHeader "Utilities" -Level 3
$markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
@@ -164,7 +166,9 @@ $markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
"helm $helmVersion",
"mongo $mongo",
"mongod $mongod",
$p7zip
$p7zip,
"bsdtar $bsdtar - available by 'tar' alias",
"GNU Tar $gnuTar - available by 'gtar' alias"
)
if ($os.IsHigherThanMojave) {
$newmanVersion = Run-Command "newman --version"