Update npm_setup.sh

pull/23/head
tteckster 2022-02-01 19:40:56 -05:00 committed by GitHub
parent 5520c29a01
commit 16c09336d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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