mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
last comments resolved.
This commit is contained in:
@@ -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 {
|
||||
Reference in New Issue
Block a user