Skip to content

Commit 8099104

Browse files
Ensure that checkout is with \n line endings
This specifically checks the install-template.sh as it's what we've had problems with.
1 parent 0b680cf commit 8099104

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.azure-pipelines/steps/run.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ steps:
8484
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
8585
displayName: Check out submodules (Windows)
8686

87+
# See also the disable for autocrlf above, this just checks that it worked
88+
#
89+
# If matches for '\r' are found, we should immediately exit the build.
90+
- bash: |
91+
egrep -l $'\r'\$ src/tools/rust-installer/install-template.sh && exit 1
92+
displayName: Verify line endings are LF
93+
8794
# Ensure the `aws` CLI is installed so we can deploy later on, cache docker
8895
# images, etc.
8996
- bash: |

0 commit comments

Comments
 (0)