Cumulocity-IoT / cumulocity-devicemanagement-agent

Cumulocity Reference Agent written in Python to demonstrate most of the Device Management Capabilities of Cumulocity IoT
Apache License 2.0
26 stars 20 forks source link

Add hint to set appropriate End of Line Sequence #41

Closed mbie-sag closed 2 years ago

mbie-sag commented 2 years ago

When I try to run the agent on a Windows machine, I recognized VSCODE did not use the right EOL Sequence for running the *.sh scripts. So maybe put one hint in the documentation to set "LF" or "\n" for End of Line Sequence in Windows environments. "Auto" detection did not work for me (at least not in VSCODE).

switschel commented 2 years ago

Hi @mbie-sag,

how do you run the *.sh in windows? Normally you should either use a shell emulation like cygwin or even better run it in WSL.

For running in Windows you can use the start.bat

switschel commented 2 years ago

Discussed with Marco. For some reason all files were touched with a wrong EOL. Reverting fixed it.