gforien / create-aws-website

Déployer en quelques secondes un site Web avec configuration NGINX et DNS 👨‍💻🌐
0 stars 0 forks source link

Error when cloning repo and launching script #7

Closed gforien closed 2 years ago

gforien commented 2 years ago

When cloning repo on a Windows machine, and launching the script

Error: bash: -c: line 1: syntax error near unexpected token &&

image

gforien commented 2 years ago

It's an encoding issue, see https://stackoverflow.com/a/20929197/6402299 When changing line endings to LF, it works again but only for the local copy of the repository. Note that it should work correctly on a linux system.

Several potential solutions for this to work, when someone clones the repository: