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

CLI install overwrites /usr/local/bin if directory does not exist

Open mdierolf opened this issue 1 month ago • 1 comments

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

mdierolf avatar Nov 13 '25 18:11 mdierolf

Bug is fixed here #1161

mdierolf avatar Nov 13 '25 18:11 mdierolf