2 # See also the disable for autocrlf, this just checks that it worked.
4 # We check both in rust-lang/rust and in a submodule to make sure both are
5 # accurate. Submodules are checked out significantly later than the main
6 # repository in this script, so settings can (and do!) change between then.
8 # Linux (and maybe macOS) builders don't currently have dos2unix so just only
9 # run this step on Windows.
14 source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
17 # print out the git configuration so we can better investigate failures in
19 git config --list --show-origin
20 dos2unix -ih Cargo.lock src/tools/rust-installer/install-template.sh
21 endings=$(dos2unix -ic Cargo.lock src/tools/rust-installer/install-template.sh)
22 # if endings has non-zero length, error out
23 if [ -n "$endings" ]; then exit 1 ; fi