Skip to content

Commit c5835f0

Browse files
committed
Update cortex.sh new lines
1 parent 9821c22 commit c5835f0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cortex.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ set -u
8484
### CONFIGURATION ###
8585
#####################
8686

87-
echo ""
88-
8987
export CORTEX_VERSION_STABLE=master
9088

9189
export CORTEX_CONFIG="${CORTEX_CONFIG:-""}"
@@ -188,7 +186,7 @@ if [ "$arg2" != "cli" ]; then
188186
fi
189187

190188
if [ "$arg1" = "install" ] && [ "$arg2" = "" ] && [ "$arg3" = "" ]; then
191-
echo "Configuration"
189+
echo -e "\nConfiguration"
192190
echo " ○ cluster name: $CORTEX_CLUSTER"
193191
echo " ○ region: $CORTEX_REGION"
194192
echo " ○ instance type: $CORTEX_NODE_TYPE"
@@ -309,9 +307,9 @@ function check_dep_curl() {
309307
function install_cli() {
310308
set -e
311309

312-
check_dep_curl
310+
echo -e "Installing CLI (/usr/local/bin/cortex) ..."
313311

314-
echo -e "\nInstalling CLI (/usr/local/bin/cortex) ..."
312+
check_dep_curl
315313

316314
CORTEX_SH_TMP_DIR="$HOME/.cortex-sh-tmp"
317315
rm -rf $CORTEX_SH_TMP_DIR && mkdir -p $CORTEX_SH_TMP_DIR
@@ -424,6 +422,7 @@ function prompt_for_email() {
424422
if [ "$CORTEX_ENABLE_TELEMETRY" != "false" ]; then
425423
echo
426424
read -p "Email address [press enter to skip]: "
425+
echo
427426

428427
if [[ ! -z "$REPLY" ]]; then
429428
curl -k -X POST -H "Content-Type: application/json" $CORTEX_TELEMETRY_URL/support -d '{"email_address": "'$REPLY'", "source": "cortex.sh"}' >/dev/null 2>&1 || true

0 commit comments

Comments
 (0)