diff --git a/images/macos/provision/core/commonutils.sh b/images/macos/provision/core/commonutils.sh index a479974cd..0ff45595e 100644 --- a/images/macos/provision/core/commonutils.sh +++ b/images/macos/provision/core/commonutils.sh @@ -22,6 +22,7 @@ binst_common_utils=( p7zip ant aria2 + gnu-tar ) if is_Less_BigSur; then diff --git a/images/macos/software-report/SoftwareReport.Generator.ps1 b/images/macos/software-report/SoftwareReport.Generator.ps1 index 9695971ae..a91cdde2f 100644 --- a/images/macos/software-report/SoftwareReport.Generator.ps1 +++ b/images/macos/software-report/SoftwareReport.Generator.ps1 @@ -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" diff --git a/images/macos/tests/Common.Tests.ps1 b/images/macos/tests/Common.Tests.ps1 index e45eff03f..47cc08933 100644 --- a/images/macos/tests/Common.Tests.ps1 +++ b/images/macos/tests/Common.Tests.ps1 @@ -248,6 +248,10 @@ Describe "Common utilities" { It "Apache Ant" { "ant -version" | Should -ReturnZeroExitCode } + + It "GNU Tar" { + "gtar --version" | Should -ReturnZeroExitCode + } } Describe "Browsers" {