heartsucker / node-deb

Debian packaging for Node.js projects
https://www.npmjs.com/package/node-deb
MIT License
206 stars 54 forks source link

unescaped newline inside substitute pattern #98

Open alleles opened 6 years ago

alleles commented 6 years ago

stoked$ node-deb -- app.js ./ INFO: Making install directories INFO: Rendering templates sed: 1: "s/{{ node_deb_package_m ...": unescaped newline inside substitute pattern

running on a mac.. not even sure what to do with this.. not sure what it's even trying to read.. providing more verbose output could help me solve it myself possibly..

Thanks for this project!!!

heartsucker commented 5 years ago

Heya. I think what's happening is one of your variables that's being picked up from package.json includes a \n somewhere and that's breaking sed. Have been meaning to move this to JS #102 so all these bash bugs go away, but i haven't done it because tbh I have never programmed JS and made this tool when I was working on an ops team to help our devs out.

Anyway. Can you take a look at your package.json and see if anything looks funny there?