azweb76 / node-rpmbuild

RPM build package for node.
MIT License
2 stars 8 forks source link

generated script fails due to extra ^M char #3

Open asquare opened 9 years ago

asquare commented 9 years ago

The generated %prep script /var/tmp/rpm-tmp.xxxxxx contains a line (line 37) with an extra '\r' after the chmod command that causes the build to fail - quoting the last 3 lines of this file -

/usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . ^M exit 0

sparkleholic commented 9 years ago

The uploaded spec file seems to have CRLF line terminators

$ file -b spec
ASCII text, with CRLF line terminators

I think it should be changed to unix format.