node-deb
node-deb copied to clipboard
Check that entrypoints are exectuable and have a shebang line
Why not use node followed by command line? Also this should be part of help.
#!/usr/bin/env node as first line of your code.
Just having a shebang is insufficient. It needs to have the executable bit set. I'd have to check both of them, so a head -1 $entry | grep -E '^#!' and [[ -f $entry && -x $entry ]], and this would only work if someone didn't have a custom pre/post-inst stript that did anything silly.