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

docs(output): update user-facing output in get-armory-cli #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
18 changes: 9 additions & 9 deletions get-armory-cli
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ case $RAW_ARCH in
;;
esac

echo "Detected ${OS}-${ARCH}, preparing to install Armory Version Manager and Armory CLI"
echo "Detected ${OS}-${ARCH}. Preparing to install Armory Version Manager and Armory CLI."

DOWNLOAD_URL=$(curl -L -s https://api.github.com/repos/armory/avm/releases/latest | grep "browser_download_url.*avm-${OS}-${ARCH}" | cut -d : -f 2,3 | tr -d \" | xargs echo -n)
DEST_DIR="${HOME}/.avm/bin"
Expand All @@ -37,13 +37,13 @@ chmod +x "${DEST}"

export PATH="${PATH}:${DEST_DIR}"

echo "Installing latest Armory CLI with AVM, to upgrade in the future use 'avm'"
echo "Installing latest Armory CLI with AVM. To upgrade in the future use 'avm'."
avm install

###
# Logic below for updating profiles are inspired by Nvm and SDKMan
##
PATH_SNIPPIT="\n# This adds the Armory Version Manager (AVM) and Armory CLI to the path\nexport PATH=\"\${PATH}:${HOME}/.avm/bin\""
PATH_SNIPPIT="\n# This adds the Armory Version Manager (AVM) and Armory CLI to the path\nexport PATH=\"\${PATH}:${HOME}/.avm/bin\"."
avm_bash_profile="${HOME}/.bash_profile"
avm_bashrc="${HOME}/.bashrc"
avm_zshrc="${ZDOTDIR:-${HOME}}/.zshrc"
Expand All @@ -70,9 +70,9 @@ if [[ -z $(grep "export PATH=\"\${PATH}:${HOME}/.avm/bin" "$avm_zshrc") ]]; then
echo "Added ${HOME}/.avm/bin to path in ${avm_zshrc}"
fi

echo "############################################################################################"
echo "# Install of avm, and armory complete"
echo "# This install script updates your bash or zsh profile to add ${HOME}/.avm/bin to your path"
echo "# If you aren't using bash or zsh you will need to do this manually"
echo "# You may have to start a new terminal session or re-source your bash or zsh profile/rc"
echo "############################################################################################"
echo "#############################################################################################"
echo "# Install of AVM and CLI Complete"
echo "# This install script updates your bash or zsh profile to add ${HOME}/.avm/bin to your path."
echo "# If you aren't using bash or zsh, you need to update your profile manually."
echo "# You may have to start a new terminal session or source your bash or zsh profile/rc."
echo "#############################################################################################"