mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-28 12:27:54 +08:00
added corrected things
This commit is contained in:
@@ -10,12 +10,12 @@ function Validate-Scripts {
|
||||
$ScriptWithoutShebangLine = @()
|
||||
Get-ChildItem $path -Recurse -File -Filter "*.sh" | ForEach-Object {
|
||||
$relativePath = Resolve-Path $_.FullName -Relative
|
||||
$shebangLine = Get-Content -Path $.FullName | Select-Object -First 1
|
||||
$shebangLine = Get-Content -Path $_.FullName | Select-Object -First 1
|
||||
if ($shebangLine -eq $ExpectedShebang) {
|
||||
Write-Host "[+] '$relativePath'"
|
||||
}
|
||||
else {
|
||||
Write-Host "[-] 'relativePath'"
|
||||
Write-Host "[-] '$relativePath'"
|
||||
$ScriptWithoutShebangLine += $relativePath
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user