Skip to content

Commit f3c0451

Browse files
committed
Add .gitattributes to ensure the bash file has the correct EOL
1 parent 4badf52 commit f3c0451

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Set all files to use line feed endings (since we can't match only ones without an extension)
2+
* eol=lf
3+
# And then reset all the files with extensions back to default
4+
*.* -eol
5+
6+
*.sh text eol=lf

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
set -o errexit
33

44
function cleanup() {

0 commit comments

Comments
 (0)