last comments resolved.

This commit is contained in:
Darii Nurgaleev
2020-10-13 18:06:14 +07:00
parent e88c5b8f09
commit a191335ab6

View File

@@ -24,9 +24,7 @@ function Validate-Scripts {
$PathUbuntu = "./images/linux/scripts"
$PathMacOS = "./images/macos/provision"
$ScriptsWithBrokenShebang = @()
# Check Ubuntu contains required shebang string
$ScriptsWithBrokenShebang += Validate-Scripts -Path $PathUbuntu -Pattern "#!/bin/bash -e"
# Check MacOS contains required shebang string
$ScriptsWithBrokenShebang += Validate-Scripts -Path $PathMacOS -Pattern "#!/bin/bash -e -o pipefail"
if ($ScriptsWithBrokenShebang.Length -gt 0) {
$ScriptsWithBrokenShebang | ForEach-Object {