From 16c09336d2a2bc542288be9c81f798d2d9587417 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 1 Feb 2022 19:40:56 -0500 Subject: [PATCH] Update npm_setup.sh --- setup/npm_setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/npm_setup.sh b/setup/npm_setup.sh index c471c242..1df1986f 100644 --- a/setup/npm_setup.sh +++ b/setup/npm_setup.sh @@ -7,6 +7,7 @@ set -o pipefail shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' CHECKMARK='\033[0;32m\xE2\x9C\x94\033[0m' +CROSS='\033[1;31m\xE2\x9D\x8C\033[0m' trap die ERR trap 'die "Script interrupted."' INT @@ -22,13 +23,12 @@ function msg() { local TEXT="$1" echo -e "$TEXT" } - while [ "$(hostname -I)" = "" ]; do - echo -e "No network: $(date)" - sleep 1 + echo -e "${CROSS} \e[1;31m No network: \e[0m $(date)" + sleep 3 done -echo -e "Network connected: ($(hostname -I)) \e[0m" + echo -e "${CHECKMARK} \e[1;92m Network connected: \e[0m ($(hostname -I))" echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m" sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen