.gitattributes not created in some situations
Replaces https://github.com/StackExchange/blackbox/pull/146
This commit is contained in:
@@ -39,6 +39,7 @@ if [[ $VCS_TYPE = "git" ]]; then
|
|||||||
|
|
||||||
# Set .gitattributes so that Windows users don't break the admin files.
|
# Set .gitattributes so that Windows users don't break the admin files.
|
||||||
FILE="$BLACKBOXDATA/.gitattributes"
|
FILE="$BLACKBOXDATA/.gitattributes"
|
||||||
|
touch "$FILE"
|
||||||
LINE='blackbox-admins.txt text eol=lf'
|
LINE='blackbox-admins.txt text eol=lf'
|
||||||
grep -qF "$LINE" "$FILE" || echo "$LINE" >> "$FILE"
|
grep -qF "$LINE" "$FILE" || echo "$LINE" >> "$FILE"
|
||||||
LINE='blackbox-files.txt text eol=lf'
|
LINE='blackbox-files.txt text eol=lf'
|
||||||
|
|||||||
Reference in New Issue
Block a user