Skip to content

Commit

Permalink
docker: Keep LF on bash configs for Windows builds
Browse files Browse the repository at this point in the history
Fixes an issue when building on Windows where the bash configs
(`docker/etc/skel`) were checked out with `\r\n` file endings, then
included with `COPY` during docker build. Causing an error when running
the container:

```bash
bash: $'\r': command not found
bash: /home/pi/.bashrc: line 6: syntax error near unexpected token
`$'in\r''
'ash: /home/pi/.bashrc: line 6: `case $- in
```

Everything in the docker/rpi folder should be treated as Linux files.
  • Loading branch information
seriema committed Mar 23, 2020
1 parent 0b3d209 commit 2ceb265
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/rpi/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# All files in this folder are taken from a Raspberry Pi so they should always use Linux file endings
* text eol=lf

0 comments on commit 2ceb265

Please sign in to comment.