Fix escape codes;

When running certain scripts, sometimes an 'm' character is wrongly
output to the terminal. This PR fixes all instances of this happening.
I've also made 'RD' (red) consistent with 'GN' (green) by removing the
leading 0, and my editor has kindly removed all trailing spaces from
files.
This commit is contained in:
Gavin Laking 2022-10-16 15:30:36 +01:00
parent bfeb4105e9
commit ee5b965cd6
225 changed files with 2043 additions and 2049 deletions

View file

@ -19,7 +19,7 @@ apt-get update &>/dev/null
echo -e "\e[1;92m Installing pip3... \e[0m"
apt-get install -y python3-pip &>/dev/null
echo -e "\e[1;92m Installing runlike... \e[0m"
pip3 install runlike &>/dev/null
pip3 install runlike &>/dev/null
fi
echo -e "\e[1;92m Creating Update Script... \e[0m"
if [ -d /root/hass_config ]; then
@ -57,7 +57,7 @@ show_menu(){
read opt
}
option_picked(){
msgcolor=`echo "\033[01;31m"`
msgcolor=`echo "\033[1;31m"`
normal=`echo "\033[00;00m"`
message=${@:-"${normal}Error: No message passed"}
printf "${msgcolor}${message}${normal}\n"
@ -202,7 +202,7 @@ for container in ${CONTAINER_LIST}; do
DOCKER_COMMAND="$(runlike "${container}")"
docker rm --force "${container}"
eval ${DOCKER_COMMAND}
fi
fi
done
EOF
sudo chmod +x /root/update-containers.sh