From 2765517999b2560f463340edd2cf016cabbb6bcd Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Mon, 11 Nov 2024 18:52:23 +0200 Subject: [PATCH] Adjust shell scripts help output (#13) --- generate.sh | 13 +++++++------ install.sh | 11 ++++++----- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/generate.sh b/generate.sh index 6aae0f7..cab7d69 100644 --- a/generate.sh +++ b/generate.sh @@ -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 diff --git a/install.sh b/install.sh index 493dcdd..dc83dd2 100644 --- a/install.sh +++ b/install.sh @@ -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