added latest changes.

This commit is contained in:
Darii Nurgaleev
2020-10-13 18:31:14 +07:00
parent a191335ab6
commit 01e2f948f6
2 changed files with 7 additions and 2 deletions

View File

@@ -23,3 +23,8 @@ jobs:
VALIDATE_JSON: true
VALIDATE_MD: true
DEFAULT_BRANCH: ${{ github.base_ref }}
- name: Checking shebang lines in MacOS and Ubuntu releases.
shell: powershell
run: |
./images.CI/shebang-linter.ps1

View File

@@ -24,8 +24,8 @@ function Validate-Scripts {
$PathUbuntu = "./images/linux/scripts"
$PathMacOS = "./images/macos/provision"
$ScriptsWithBrokenShebang = @()
$ScriptsWithBrokenShebang += Validate-Scripts -Path $PathUbuntu -Pattern "#!/bin/bash -e"
$ScriptsWithBrokenShebang += Validate-Scripts -Path $PathMacOS -Pattern "#!/bin/bash -e -o pipefail"
$ScriptsWithBrokenShebang += Validate-Scripts -Path $PathUbuntu -ExpectedShebang "#!/bin/bash -e"
$ScriptsWithBrokenShebang += Validate-Scripts -Path $PathMacOS -ExpectedShebang "#!/bin/bash -e -o pipefail"
if ($ScriptsWithBrokenShebang.Length -gt 0) {
$ScriptsWithBrokenShebang | ForEach-Object {
Write-Warning "The following script does not contain shebang: '$_'"