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

@ -2,10 +2,10 @@
set -e
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"`
while true; do
read -p "This Will Update All LXC Containers. Proceed(y/n)?" yn
case $yn in
@ -17,11 +17,11 @@ done
clear
function header_info {
echo -e "${BL}
_ _ _____ _____ _______ ______
_ _ _____ _____ _______ ______
| | | | __ \| __ \ /\|__ __| ____|
| | | | |__) | | | | / \ | | | |__
| | | | ___/| | | |/ /\ \ | | | __|
| |__| | | | |__| / ____ \| | | |____
| | | | |__) | | | | / \ | | | |__
| | | | ___/| | | |/ /\ \ | | | __|
| |__| | | | |__| / ____ \| | | |____
\____/|_| |_____/_/ \_\_| |______|
${CL}"
@ -49,7 +49,7 @@ fi
for container in $containers
do
status=`pct status $container`
if [ "$skip" == "no" ]; then
if [ "$skip" == "no" ]; then
if [ "$status" == "status: stopped" ]; then
echo -e "${BL}[Info]${GN} Starting${BL} $container ${CL} \n"
pct start $container
@ -61,12 +61,12 @@ do
elif [ "$status" == "status: running" ]; then
update_container $container
fi
fi
fi
if [ "$skip" == "yes" ]; then
if [ "$status" == "status: running" ]; then
update_container $container
fi
fi
fi
done; wait
echo -e "${GN} Finished, All Containers Updated. ${CL} \n"