소스 검색

Force Unix line endings on shell scripts

When following the quickstart docker instructions on Windows (using
Docker for Windows), an error is encountered when running the netbox
container. This is caused by git converting the line endings of the
docker-entrypoint.sh script to Windows format, which are then copied
into the container image.

By setting .gitattributes, we force LF rather than CRLF line endings on
shell scripts on Windows. Other files are left as is.
Peter Russell 9 년 전
부모
커밋
d68b34cefe
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      .gitattributes

+ 1 - 0
.gitattributes

@@ -0,0 +1 @@
+*.sh text eol=lf