From 1138ed57953cabc430c2a6cfb65240598e7e4413 Mon Sep 17 00:00:00 2001 From: Atif Aziz Date: Wed, 13 Jan 2021 18:42:20 +0100 Subject: [PATCH] Use consistent line-folding in CI YAML shell sections --- appveyor.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 7624d9496..d2b14361a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -69,21 +69,15 @@ build_script: } else { $LASTEXITCODE = 0 } -- ps: >- +- ps: | $id = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP -replace '([-:]|\.0+Z)', '' - $id = $id.Substring(0, 13) - if ($isWindows) { cmd /c call pack.cmd ci-$id } else { ./pack.sh ci-$id } - if ($LASTEXITCODE -ne 0) { throw "Building/Packing failed with an exit code of $LASTEXITCODE." } - $diff = git diff --ignore-all-space --exit-code 2>&1 - $diff | % { if ($_ -is [string]) { $_ } else { [string]$_ } } | echo - if ($LASTEXITCODE -ne 0) { throw "New code was generated during build that's not been committed." }