mainsail-crew / virtual-klipper-printer

Run a simulated Klipper 3D-Printer in a Docker container
GNU General Public License v3.0
68 stars 32 forks source link

fix: add .gitattributes to force bash scripts to have LF line endings #35

Closed NameOfTheDragon closed 4 months ago

NameOfTheDragon commented 4 months ago

Fixes #34

In the latest commit, the start.sh file has Windows line endings and that messes with Bash under Linux so the container will not start.

This PR fixes this by:

  1. Correcting the line endings to LF in the start.sh file
  2. Adding a .gitattributes file that forces LF line endings on all bash scripts.

This should ensure that even if the files are edited in a Windows editor (such as VS Code) that line endings will be correctly preserved.

dw-0 commented 4 months ago

Thank you!