From 18ba5897491da38400c0214ab19b8cab31e191c5 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Feb 05 2011 04:16:21 +0000 Subject: Update Render/render_doIdentityImages.sh. --- diff --git a/Scripts/Bash/Functions/Render/render_doIdentityImages.sh b/Scripts/Bash/Functions/Render/render_doIdentityImages.sh index 7108551..e8167ad 100644 --- a/Scripts/Bash/Functions/Render/render_doIdentityImages.sh +++ b/Scripts/Bash/Functions/Render/render_doIdentityImages.sh @@ -53,7 +53,7 @@ function render_doIdentityImages { # Define final image width. If FILE name is a number, asume it # as the width value of the image being rendered. Otherwise # use design template default width value. - WIDTH=$(basename ${FILE}) + WIDTH=$(basename "${FILE}") if [[ $WIDTH =~ '^[0-9]+$' ]];then WIDTH="--export-width=$WIDTH" else @@ -107,10 +107,6 @@ function render_doIdentityImages { render_doIdentityImageFormats "${FILE}" "$ACTION" ;; - renderBrands:* ) - render_doIdentityImageBrands "${FILE}" "$ACTION" - ;; - groupByType:* ) render_doIdentityGroupByType "${FILE}" "$ACTION" ;; @@ -138,7 +134,7 @@ function render_doIdentityImages { # directory structure and it is time for last-rendition # actions to be evaluated before go producing the next # directory structure in the list of files to process. - if [[ ${COMMONDIRS[$((COMMONDIRCOUNT + 1))]} != $(dirname $TRANSLATION) ]];then + if [[ ${COMMONDIRS[$((COMMONDIRCOUNT + 1))]} != $(dirname "$TRANSLATION") ]];then # At this point centos-art.sh is producing the last file # from the same unique directory structure, so, before # producing images for the next directory structure lets @@ -160,6 +156,10 @@ function render_doIdentityImages { render_doIdentityGroupByType "$ACTION" ;; + renderBrands ) + render_doIdentityImageBrands "${FILE}" "$ACTION" + ;; + esac done fi