circleci-cli icon indicating copy to clipboard operation
circleci-cli copied to clipboard

Install script installs an executable named "bin" when /usr/local/bin directory does not exist

Open christian-oudard opened this issue 4 years ago • 1 comments

After running this line in the install instructions: curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh | bash

The result is an executable file called bin in the directory /usr/local.

I suggest adding a line similar to mkdir -p "$DESTDIR"

christian-oudard avatar Jan 08 '22 01:01 christian-oudard

hi @christian-oudard thanks for reporting this, it's possible to install to alternate location by defining the DESTDIR environment variable when invoking bash: curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/main/install.sh | DESTDIR=/opt/bin bash

abdelDriowya avatar May 10 '23 14:05 abdelDriowya