From e5423275c173bececc31d40305b7200b6d5cf140 Mon Sep 17 00:00:00 2001 From: Lucas Fayoux <8889400+lfayoux@users.noreply.github.com> Date: Fri, 19 Aug 2022 11:38:34 -0400 Subject: [PATCH] better install and update instructions (#8) * better install and update instructions --- install.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 08f37d2..5b0ab20 100644 --- a/install.sh +++ b/install.sh @@ -77,6 +77,14 @@ fi tar -xf $DLD_OUTPUT rm $DLD_OUTPUT -echo "co: binary now located at $PWD/co:" -echo "to update, run the following" -echo " mv $PWD/co: $(which co:)" +echo "Cohere CLI was downloaded to $PWD/co" +if (which co > /dev/null 2>&1) +then + echo "It looks like the co CLI is already installed, +to update, run the following: + sudo mv $PWD/co $(which co) +" +else + echo "Copy it somewhere in your PATH eg: + mkdir -p /usr/local/bin/ && sudo mv $PWD/co /usr/local/bin/co" +fi