From a8b6787fb0ec31663339b53deebd9aabeffd5860 Mon Sep 17 00:00:00 2001 From: Yahav Itzhak Date: Wed, 4 Oct 2023 19:25:04 +0300 Subject: [PATCH] Fix install CLI with sudo (#2240) --- build/installcli/jf.sh | 3 +-- build/installcli/jfrog.sh | 3 +-- build/setupcli/jf.sh | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/build/installcli/jf.sh b/build/installcli/jf.sh index 6e4ca516b..4619708d4 100755 --- a/build/installcli/jf.sh +++ b/build/installcli/jf.sh @@ -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 diff --git a/build/installcli/jfrog.sh b/build/installcli/jfrog.sh index 77c86b7af..80ec7c3f3 100755 --- a/build/installcli/jfrog.sh +++ b/build/installcli/jfrog.sh @@ -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 diff --git a/build/setupcli/jf.sh b/build/setupcli/jf.sh index f6fa02fae..ecf68f0cc 100755 --- a/build/setupcli/jf.sh +++ b/build/setupcli/jf.sh @@ -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