Update npm_setup.sh

pull/23/head
tteckster 3 years ago committed by GitHub
parent 5520c29a01
commit 16c09336d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,6 +7,7 @@ set -o pipefail
shopt -s expand_aliases shopt -s expand_aliases
alias die='EXIT=$? LINE=$LINENO error_exit' alias die='EXIT=$? LINE=$LINENO error_exit'
CHECKMARK='\033[0;32m\xE2\x9C\x94\033[0m' CHECKMARK='\033[0;32m\xE2\x9C\x94\033[0m'
CROSS='\033[1;31m\xE2\x9D\x8C\033[0m'
trap die ERR trap die ERR
trap 'die "Script interrupted."' INT trap 'die "Script interrupted."' INT
@ -22,13 +23,12 @@ function msg() {
local TEXT="$1" local TEXT="$1"
echo -e "$TEXT" echo -e "$TEXT"
} }
while [ "$(hostname -I)" = "" ]; do while [ "$(hostname -I)" = "" ]; do
echo -e "No network: $(date)" echo -e "${CROSS} \e[1;31m No network: \e[0m $(date)"
sleep 1 sleep 3
done 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" echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m"
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen

Loading…
Cancel
Save

Powered by BW's shoe-string budget.