colors.sh: Añadido negrita
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user