Skip to content

Commit

Permalink
fix: Normalise *.sh File Endings (#16608)
Browse files Browse the repository at this point in the history
Windows users encounter problems running the `docker-compose` commands
 to run an instance of Superset.

The reason for this is line-endings for the `*.sh` files that are
 mounted and used in the `command` sections for the superset images.

Many Windows users will check the repository out with line endings set
 to `CRLF`. When mounted in to the *nix-based containers, these line
 endings are not understood, leading to errors such as:

```text
/usr/bin/env: bash\r: No such file or directory
```

The addition of a `.gitattributes` file resolves this issue by telling
 git to always resolve these files with `LF` line endings.

+semver: fix
+ref: #10132
  • Loading branch information
gvee-uk committed Sep 13, 2021
1 parent 376c685 commit d984c10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
docker/**/*.sh text eol=lf

0 comments on commit d984c10

Please sign in to comment.