Skip to content

The "self-update" command is broken #25

@aik099

Description

@aik099

Steps to reproduce:

  1. download latest phar from https://scrutinizer-ci.com/ocular.phar
  2. show it's version using php ocular.phar --version:
ocular version 8e0a8c7f085bc4857bd52132833679dcfd504fc1
  1. run self-update command using php ocular.phar self-update:
#!/usr/bin/env php
Updating from 8e0a8c to #!/usr.

What not right:

  1. the #!/usr/bin/env php is shown (something wrong with phar creation process probably)
  2. update even from latest version possible (new version check is broken)
  3. the #!/usr is shown instead of new version (new version check is broken)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions