Skip to content

Commit

Permalink
better install and update instructions (#8)
Browse files Browse the repository at this point in the history
* better install and update instructions
  • Loading branch information
lfayoux authored Aug 19, 2022
1 parent 003bb39 commit e542327
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e542327

Please sign in to comment.