Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

Setup script fails due to TRUE command #17

@kb2ma

Description

@kb2ma

Many gcloud commands embedded in gcp-setup.sh don't run due to constructs like this:

$GCLOUD_COMMIT && gcloud_slow [command]

where GCLOUD_COMMIT is defined as

GCLOUD_COMMIT=TRUE

Running on an Ubuntu 20.04 laptop with Bash 5.0. Example failure below.

*** GCP Project: Link to billing ***
1) -My-Billing-Account
Please select your billing account:1
scripts/gcp-setup.sh: line 86: TRUE: command not found
Billing account: 000000-000000-000000

*** GCP Project: Enable API's ***
This operation might take some minutes...
scripts/gcp-setup.sh: line 94: TRUE: command not found
scripts/gcp-setup.sh: line 95: TRUE: command not found
scripts/gcp-setup.sh: line 96: TRUE: command not found
Enabled API's: compute, pubsub and cloudiotcore

TRUE is not a command, but true is, at /usr/bin/true. At the same time, I don't understand why the gcloud command must be preceded with 'true'.

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