Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI installer is broken by 2.49.0 release #2239

Closed
gwjo opened this issue Oct 4, 2023 · 5 comments · Fixed by #2240
Closed

CLI installer is broken by 2.49.0 release #2239

gwjo opened this issue Oct 4, 2023 · 5 comments · Fixed by #2240
Assignees

Comments

@gwjo
Copy link

gwjo commented Oct 4, 2023

The CLI based installer via curl is broken if it requires sudo access.

$ curl -fL https://install-cli.jfrog.io/ | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2510  100  2510    0     0  23320      0 --:--:-- --:--:-- --:--:-- 23457
Downloading the latest version of JFrog CLI...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 25.5M  100 25.5M    0     0  45.0M      0 --:--:-- --:--:-- --:--:-- 45.0M
mv: cannot create regular file '/usr/local/bin/jf': Permission denied
We'd like to install the JFrog CLI executable in /usr/local/bin. Please approve this installation by entering your password.
mv: invalid option -- 'e'
Try 'mv --help' for more information.
mv: cannot create regular file '/usr/bin/jf': Permission denied
We'd like to install the JFrog CLI executable in /usr/bin. Please approve this installation by entering your password.
mv: invalid option -- 'e'
Try 'mv --help' for more information.
could not find supported destination path in $PATH

This is caused by the line below:

echo ""
echo "We'd like to install the JFrog CLI executable in $1. Please approve this installation by entering your password."
if sudo mv $FILE_NAME "$1" -eq "0"

The if statement should be:

       if sudo mv $FILE_NAME "$1"
@akire0ne
Copy link

akire0ne commented Oct 4, 2023

Same here

@alexiaizenberg
Copy link

Ditto

@gavinclarkeuk
Copy link

Can install it like this:

curl -fL https://releases.jfrog.io/artifactory/jfrog-cli/v2-jf/2.48.0/scripts/install-cli.sh | sh

@yahavi yahavi mentioned this issue Oct 4, 2023
4 tasks
@yahavi yahavi linked a pull request Oct 4, 2023 that will close this issue
4 tasks
@yahavi
Copy link
Member

yahavi commented Oct 4, 2023

@gwjo @gavinclarkeuk @alexiaizenberg @akire0ne
Thanks for flagging this problem. We apologize for the inconvenience. We're currently in the process of preparing a speedy fix, which you can track here: #2240. We'll be sure to keep you updated on our progress.

@yahavi
Copy link
Member

yahavi commented Oct 4, 2023

@gwjo @gavinclarkeuk @alexiaizenberg @akire0ne
Version 2.49.1 with the fix is out now. Feel free to share your thoughts and feedback on it.

@yahavi yahavi self-assigned this Oct 4, 2023
@yahavi yahavi closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants