comillas en variables para evitar globbers (solo mejora codigo LINT)

This commit is contained in:
luisgulo 2024-06-13 00:22:09 +02:00
parent 97649f4353
commit a3cb8ca2c4

View File

@ -28,17 +28,17 @@ TEXTO=$(zenity --entry --text="Escriba el mensaje a poner en la imagen" --entry-
# Temporales Escalados
echo "Preparando Imagenes temporales (escaladas).."
convert $ANVERSO -resize 1011x638 -units PixelsPerInch -density 150 $AnvTMP 2>/dev/null
convert $REVERSO -resize 1011x638 -units PixelsPerInch -density 150 $RevTMP 2>/dev/null
convert "$ANVERSO" -resize 1011x638 -units PixelsPerInch -density 150 "$AnvTMP" 2>/dev/null
convert "$REVERSO" -resize 1011x638 -units PixelsPerInch -density 150 "$RevTMP" 2>/dev/null
echo "Ocultando, fijando texto y escala gris en ANVERSO"
convert $AnvTMP -fill gray -draw "rectangle $CAN" -fill gray -draw "rectangle $SOPORTE" -font helvetica -fill black -pointsize 30 -gravity center -annotate 0 "$TEXTO" -grayscale average -units PixelsPerInch -density 150 $AnvIMG
convert "$AnvTMP" -fill gray -draw "rectangle $CAN" -fill gray -draw "rectangle $SOPORTE" -font helvetica -fill black -pointsize 30 -gravity center -annotate 0 "$TEXTO" -grayscale average -units PixelsPerInch -density 150 "$AnvIMG"
echo "Ocultando, fijando texto y escala gris en REVERSO"
convert $RevTMP -fill gray -draw "rectangle $EQUIPO" -fill gray -draw "rectangle $PADRES" -fill gray -draw "rectangle $IDE" -font helvetica -fill black -pointsize 30 -gravity center -annotate 0 "$TEXTO" -grayscale average -units PixelsPerInch -density 150 $RevIMG
convert "$RevTMP" -fill gray -draw "rectangle $EQUIPO" -fill gray -draw "rectangle $PADRES" -fill gray -draw "rectangle $IDE" -font helvetica -fill black -pointsize 30 -gravity center -annotate 0 "$TEXTO" -grayscale average -units PixelsPerInch -density 150 "$RevIMG"
echo "Limpiando temporales..."
rm $AnvTMP $RevTMP
rm "$AnvTMP" "$RevTMP"
echo
echo "-----------------------------------------------"