circleci-cli
circleci-cli copied to clipboard
CLI install overwrites /usr/local/bin if directory does not exist
When installing the CLI using the installer, if /usr/local/bin does not exist, the binary is written as a file called /usr/local/bin instead of creating the /usr/local/bin directory, and the installation fails
# rm /usr/local/bin
# ls -la /usr/local/bin
ls: cannot access '/usr/local/bin': No such file or directory
# curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/main/install.sh | bash
Starting installation.
Installing CircleCI CLI v0.1.33494
Installing to /usr/local/bin
An error occured installing the tool.
The contents of the directory /tmp/tmp.fBvjlvSUXG have been left in place to help to debug the issue.
# ls -la /usr/local/bin
-rwxr-xr-x 1 root root 30974136 Nov 13 10:20 /usr/local/bin
Bug is fixed here #1161