Skip to content

Bash variable conditional in import-release-team-keyring #106

@squarism

Description

@squarism

I had to change

if [ -v http_proxy ];

to be

if [ ${http_proxy} ] otherwise I would get a

import-release-team-keyring: line 24: [: -v: unary operator expected

Because mac has bash 3.2 seems like. I'm not sure if my fix is entirely portable (so no PR) but the -v I think is for bash >= 4.2. Maybe this was developed on box with a more up-to-date bash or something, thought I'd file this in case someone hits this.

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