lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.85k stars 289 forks source link

cygwin make fails due to CRLF in LASTPASS-VERSION-GEN #662

Open MrPeteH opened 9 months ago

MrPeteH commented 9 months ago

Download, install dependencies, run make, get these errors:

./LASTPASS-VERSION-GEN: line 2: $'\r': command not found
./LASTPASS-VERSION-GEN: line 5: $'\r': command not found
./LASTPASS-VERSION-GEN: line 8: $'\r': command not found
./LASTPASS-VERSION-GEN: line 11: $'\r': command not found
./LASTPASS-VERSION-GEN: line 17: syntax error near unexpected token `elif'
'/LASTPASS-VERSION-GEN: line 17: `elif test -d ${GIT_DIR:-.git} -o -f .git &&

And as a result, there's no version.h file. :(

The issue: windows-style CRLF's in the files.

Workaround: remove the CR's (be sure the file is still executable!), run make clean then make. (sed 's/\r//' is your friend :) )