gantsign / ansible-role-intellij

Ansible role for installing the IntelliJ IDEA IDE

Home Page:https://galaxy.ansible.com/gantsign/intellij

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for non-JetBrains download URLs

ripla opened this issue · comments

There are two ways to upload a plugin to the JetBrains plugin repository: upload or provide URL. If you upload the plugin then the download URL is something like https://plugins.jetbrains.com/files/123/456/foobar.zip. In the other case, the URL can be anything. The second case isn't currently supported, but instead the parsing from the Location header expects the JetBrains format of URL here:

file_name=$(printf "$plugin_url" | sed --regexp-extended 's:^.*/([0-9]+)/([0-9]+)/([^/]+)$:\1-\2-\3:') || return 2