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

Fix install CLI with sudo #2240

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions build/installcli/jf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ while [ -n "$1" ]; do
else
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"
then
if sudo mv $FILE_NAME "$1" ; then
echo ""
echo "The $FILE_NAME executable was installed in $1"
jf intro
Expand Down
3 changes: 1 addition & 2 deletions build/installcli/jfrog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ while [ -n "$1" ]; do
else
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"
then
if sudo mv $FILE_NAME "$1" ; then
echo ""
echo "The $FILE_NAME executable was installed in $1"
exit 0
Expand Down
3 changes: 1 addition & 2 deletions build/setupcli/jf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ while [ -n "$1" ]; do
else
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"
then
if sudo mv $FILE_NAME "$1" ; then
echo ""
echo "The $FILE_NAME executable was installed in $1"
print_installation_greeting
Expand Down
Loading