Skip to content

Commit

Permalink
Force Unix line endings on shell scripts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Peter Russell committed Mar 9, 2017
1 parent 094974d commit d68b34c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh text eol=lf

0 comments on commit d68b34c

Please sign in to comment.