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

linter: Add shebang so it can be run directly #277

Merged
merged 1 commit into from
Oct 27, 2021
Merged

linter: Add shebang so it can be run directly #277

merged 1 commit into from
Oct 27, 2021

Conversation

spaze
Copy link
Contributor

@spaze spaze commented Oct 27, 2021

  • BC break? no
  • new feature? yes but tiny

Hi, I was happy to see linter added ❤ but when I ran it like this:

$ vendor/latte/latte/bin/latte-lint

I got

vendor/latte/latte/bin/latte-lint: line 1: ?php: No such file or directory

because I didn't run it like (omitted php because I didn't expect it needs to be added)

$ php vendor/latte/latte/bin/latte-lint

This PR adds a shebang line to latte-lint so it can be executed directly without php in the command line.
Also the executable flag is added to the script.

This is in line with other similar tools (like for example tester).

Thanks!

@dg
Copy link
Member

dg commented Oct 27, 2021

Thanks

@dg dg merged commit 9be3ae3 into nette:master Oct 27, 2021
@dg dg changed the title Add shebang to linter so it can be run directly linter: Add shebang so it can be run directly Oct 27, 2021
@spaze spaze deleted the patch-1 branch October 27, 2021 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants