Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that entrypoints are exectuable and have a shebang line #66

Open
heartsucker opened this issue Apr 23, 2017 · 2 comments
Open

Check that entrypoints are exectuable and have a shebang line #66

heartsucker opened this issue Apr 23, 2017 · 2 comments

Comments

@heartsucker
Copy link
Owner

No description provided.

@bogusfocused
Copy link

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.

@heartsucker
Copy link
Owner Author

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.

@ghost ghost mentioned this issue Sep 22, 2017
This was referenced Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants