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

@ -1,10 +1,10 @@
#!/usr/bin/env bash
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
APP="ESPHome"
HN=$(echo ${APP,,} | tr -d ' ')
while true; do
@ -18,11 +18,11 @@ done
clear
function header_info {
echo -e "${RD}
______ _____ _____ _ _ ____ __ __ ______
______ _____ _____ _ _ ____ __ __ ______
| ____|/ ____| __ \| | | |/ __ \| \/ | ____|
| |__ | (___ | |__) | |__| | | | | \ / | |__
| __| \___ \| ___/| __ | | | | |\/| | __|
| |____ ____) | | | | | | |__| | | | | |____
| |__ | (___ | |__) | |__| | | | | \ / | |__
| __| \___ \| ___/| __ | | | | |\/| | __|
| |____ ____) | | | | | | |__| | | | | |____
|______|_____/|_| |_| |_|\____/|_| |_|______|
${CL}"
@ -196,7 +196,7 @@ function cleanup() {
popd >/dev/null
rm -rf $TEMP_DIR
}
if [ "$IM" == "1" ]; then
if [ "$IM" == "1" ]; then
FEATURES="nesting=1,keyctl=1"
else
FEATURES="nesting=1"