Skip to content

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.

2 participants