Skip to content

When provided path to install script does not exist doesn't provide error output #2977

@jorgemoralespou

Description

@jorgemoralespou

When installing chainloop via the script I was providing a non existing target dir, and could not figure out what was the problem of the CLI not being installed:

[~] $ curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --path ~/.local/bin2
Step 1: Downloading: chainloop-linux-arm64, Version: 1.89.6
######################################################################## 100.0%
Done...

Step 1.2: Verifying checksum
chainloop-linux-arm64: OK
Checksum OK


Signature verification skipped, cosign is not installed

Step 2: Installing: chainloop to /home/eduk8s/.local/bin2
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.

When used an existing dir, everything worked fine:

[~] $ mkdir -p ~/.local/bin2
[~] $ curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --path ~/.local/bin2
Step 1: Downloading: chainloop-linux-arm64, Version: 1.89.6
######################################################################## 100.0%
Done...

Step 1.2: Verifying checksum
chainloop-linux-arm64: OK
Checksum OK


Signature verification skipped, cosign is not installed

Step 2: Installing: chainloop to /home/eduk8s/.local/bin2
Step 3: Cleanup
Done...

Client Version: 1.89.6
Server Version: 1.89.6
Check here for the next steps: https://docs.chainloop.dev

Run 'chainloop auth login' to get started

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions