Skip to content

Commit

Permalink
Merge pull request #2 from bbtsoftware/add-gitattributes
Browse files Browse the repository at this point in the history
Add gitattributes
  • Loading branch information
D. Domig authored May 21, 2019
2 parents e8a2b76 + 56d8366 commit 1a63ee4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* eol=lf
11 changes: 0 additions & 11 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
#!/bin/bash

# Script to check if a docker swarm service is running and has the expected amount of instances
#
# ! When editing a bash script on a Windows machine you may get the following error on deploying:
#
# /monitor/check.sh: line x: syntax error near unexpected token `$'\r''
#
# The solution is to change the line sequence from `CRLF` to `LF` before save and verify if
# the path to the file is in `.gitattributes`.
#
# See: https://stackoverflow.com/questions/27176781/bash-file-returns-unexpected-token-do-r

# Output version
echo -e "\nStarting swarm-monitor ${VERSION} ..."

Expand Down

0 comments on commit 1a63ee4

Please sign in to comment.