Skip to content

Commit

Permalink
Fix install CLI with sudo (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Oct 4, 2023
1 parent a559d32 commit a8b6787
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
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

0 comments on commit a8b6787

Please sign in to comment.