colors.sh: Añadido negrita

This commit is contained in:
2023-04-03 19:57:35 +02:00
parent 32d32cb223
commit c7ac35cf38
2 changed files with 15 additions and 3 deletions
+7
View File
@@ -18,12 +18,19 @@ if [ ! -d "$1" ]; then
exit 0
fi
# Colores
WHITE=$(tput setaf 7)
RED_BG=$(tput setab 1)
NORMAL=$(tput sgr0)
# Procesa los ficheros
for zipfile in "${sourcedir}"/*.zip; do
gameName="$(basename "$zipfile" .zip)"
if [ -f "${destdir}/${gameName}.chd" ]; then
echo -e "\e[1m\e[41m${gameName}.chd already exists\033[0m"
TEXT="${gameName}.chd already exists"
printf "%s\n" "${WHITE}${RED_BG}${TEXT}${NORMAL}"
else
echo -e "\e[1m\e[41mExtracting ${gameName}...\033[0m"
7z x "${zipfile}" -o"${destdir}/${gameName}-tmp"