area515 / Photonic3D

Control software for resin 3D printers
http://photonic3d.com
GNU General Public License v3.0
132 stars 115 forks source link

Properly handle Windows LF in build.number for newstart.sh #206

Closed jmkao closed 8 years ago

jmkao commented 8 years ago

newstart.sh's tag detection works improperly when build.number was generated on Windows and uses Windows linefeeds.

In this case, the ^M is interpreted by newstart.sh as part of the tag name, and thus it always sees a tag mismatch and downloads a new version.

The output of the cut command needs to be further processed by something (perhaps sed) to eliminate trailing whitespace.