Skip to content

Commit 2ceb265

Browse files
committed
docker: Keep LF on bash configs for Windows builds
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.
1 parent 0b3d209 commit 2ceb265

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/rpi/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# All files in this folder are taken from a Raspberry Pi so they should always use Linux file endings
2+
* text eol=lf

0 commit comments

Comments
 (0)