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

phar file lacks shebang #29

Closed
glensc opened this issue Sep 10, 2017 · 0 comments
Closed

phar file lacks shebang #29

glensc opened this issue Sep 10, 2017 · 0 comments

Comments

@glensc
Copy link

glensc commented Sep 10, 2017

➔ wget https://github.com/maglnet/ComposerRequireChecker/releases/download/0.1.5/composer-require-checker.phar
➔ chmod a+rx composer-require-checker.phar
➔ ./composer-require-checker.phar
./composer-require-checker.phar: line 1: ?php: No such file or directory
./composer-require-checker.phar: line 3: =: command not found
./composer-require-checker.phar: line 5: syntax error near unexpected token `'phar','
./composer-require-checker.phar: line 5: `if (in_array('phar', stream_get_wrappers()) && class_exists('Phar', 0)) {'
➔ head -n 1 composer-require-checker.phar
<?php

please add:

#!/usr/bin/env php

that should be most portable.

maglnet added a commit that referenced this issue Sep 24, 2017
MidnightDesign pushed a commit to MidnightDesign/ComposerRequireChecker that referenced this issue Sep 17, 2020
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

No branches or pull requests

1 participant