From f2951fddfdebbee2d7a445b58b52d1cf8ced7ac8 Mon Sep 17 00:00:00 2001 From: Daniel Brown Date: Fri, 20 Sep 2019 16:16:53 -0500 Subject: Line Ending Fix Added .gitattributes to prevent Windows users from accidentally cloning the repo and getting incorrect line endings Also adjusting the shebang for the migrate_and_serve.sh to prevent another Windows related bug --- .gitattributes | 3 +++ docker/app/scripts/migrate_and_serve.sh | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..a90a0a96 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +# Declare files that will always have LF line endings on checkout +# This prevents git on Windows from automatically inserting CRLF line endings +* text=auto eol=lf \ No newline at end of file diff --git a/docker/app/scripts/migrate_and_serve.sh b/docker/app/scripts/migrate_and_serve.sh index 0b54a2e5..c30d7e04 100755 --- a/docker/app/scripts/migrate_and_serve.sh +++ b/docker/app/scripts/migrate_and_serve.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eu +#!/bin/sh +set -eu ### NOTE # This file is intended to be used by local setups. -- cgit v1.2.3