Skip to content

[Bug]: install script endpoint returns HTML page instead of shell script #4

Description

@callison96

TWG CLI version

N/A - install fails before a version can be installed

Operating system

macOS

Command or agent request

bash <(curl -fsSL https://teamwork-graph.atlassian.com/cli/install)

Expected behavior

Downloads and runs the install shell script, installing twg.

Actual behavior

GET /cli/install returns HTTP 200 with an HTML page (not a script):

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>TWG benchmark CLI</title>
    <meta name="robots" content="noindex">
  </head>
  <body>
    <p>TWG benchmark CLI assets are published under <a href="/cli/benchmark/install">/cli/benchmark/install</a>.</p>
  </body>
</html>

Piping this into bash fails:

/dev/fd/11: line 1: syntax error near unexpected token `newline'
/dev/fd/11: line 1: `<!doctype html>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageNeeds initial maintainer triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions