Adjust shell scripts help output (#13)

This commit is contained in:
Slava 2024-11-11 18:52:23 +02:00 committed by GitHub
parent 47e480bfb8
commit 2765517999
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 11 deletions

View File

@ -14,14 +14,15 @@ FAIL_MARK="\033[0;31m\u2718\033[0m"
# Help
if [[ $1 == *"h"* ]] ; then
SCRIPT_URL="https://get.codex.storage/generate.sh"
COMMAND="curl -s https://get.codex.storage/generate.sh"
echo -e "
\e[33mGenerate private key for Ethereum wallet\e[0m\n
\e[33mUsage:\e[0m
curl "${SCRIPT_URL}" | bash
curl "${SCRIPT_URL}" | bash
curl "${SCRIPT_URL}" | MODE=local bash
curl "${SCRIPT_URL}" | URL=https://key.codex.storage bash
curl "${SCRIPT_URL}" | bash -s help
${COMMAND} | bash
${COMMAND} | bash
${COMMAND} | MODE=local bash
${COMMAND} | URL=https://key.codex.storage bash
${COMMAND} | bash -s help
\e[33mOptions:\e[0m
- help - Show help message

View File

@ -22,13 +22,14 @@ FAIL_MARK="\033[0;31m\u2718\033[0m"
# Help
if [[ $1 == *"h"* ]] ; then
SCRIPT_URL="https://get.codex.storage/install.sh"
COMMAND="curl -s https://get.codex.storage/install.sh"
echo -e "
\e[33mInstall Codex\e[0m\n
\e[33mUsage:\e[0m
curl "${SCRIPT_URL}" | bash
curl "${SCRIPT_URL}" | VERSION=0.1.7 bash
curl "${SCRIPT_URL}" | VERSION=0.1.7 INSTALL_CIRDL=true bash
curl "${SCRIPT_URL}" | bash -s help
${COMMAND} | bash
${COMMAND} | VERSION=0.1.7 bash
${COMMAND} | VERSION=0.1.7 INSTALL_CIRDL=true bash
${COMMAND} | bash -s help
\e[33mOptions:\e[0m
- help - show this help