prevent convert LF->CRLF line ending on window

During docker built on windows if in  global git config  core.autocrlf = true then when have this message :

Step 6/12 : RUN cd /tmp && /tmp/install_ta-lib.sh && rm -r /tmp/*ta-lib*
 ---> Running in c0a626821132
/tmp/install_ta-lib.sh: 4: /tmp/install_ta-lib.sh: Syntax error: "&&" unexpected

this behave is because file is in the wrong line ending format

Has script files run on linux they need to use LF lines ending so we need to ensure they are not converted to CRLF lines ending if global git config is at  core.autocrlf = true.
This commit is contained in:
gautier pialat 2019-02-18 17:16:27 +01:00 committed by GitHub
parent 6d7834a389
commit dffb27326e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,10 +115,16 @@ Once you have Docker installed, simply create the config file (e.g. `config.json
**1.1. Clone the git repository**
Linux
```bash
git clone https://github.com/freqtrade/freqtrade.git
```
Windows (docker or WSL)
```bash
git clone --config core.autocrlf=input https://github.com/freqtrade/freqtrade.git
```
**1.2. (Optional) Checkout the develop branch**
```bash