From 72b5da47bcbfeeef8fe5d292626ddb0e9c5fb5a4 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Feb 21 2011 01:54:12 +0000 Subject: Update identity_getDirOutput.sh. --- diff --git a/Scripts/Bash/Functions/Identity/identity_getDirOutput.sh b/Scripts/Bash/Functions/Identity/identity_getDirOutput.sh index 7002aa9..e28cbd4 100644 --- a/Scripts/Bash/Functions/Identity/identity_getDirOutput.sh +++ b/Scripts/Bash/Functions/Identity/identity_getDirOutput.sh @@ -27,16 +27,13 @@ function identity_getDirOutput { - # Define base output directory using design model path as reference. + # Define base output directory using design model path as + # reference. By default rendered identity content is stored + # immediatly under identity entry structure, but if `Img/' + # directory exists use it instead. OUTPUT=$(dirname $FILE | sed -r \ - -e "s!/Models/${THEMEMODEL}!/Motifs/$(cli_getPathComponent "$ACTIONVAL" "--theme")!") - - # By default rendered identity content is stored immediatly under - # identity entry structure, but if `Img/' directory exists use it - # instead. - if [[ -d ${OUTPUT}/Img ]]; then - OUTPUT=${OUTPUT}/Img - fi + -e "s!/Models/${THEMEMODEL}!/Motifs/$(cli_getPathComponent "$ACTIONVAL" "--theme")!" \ + -e "s!/Tpl!/Img!") # Redefine base output directory to introduce specific information # like release number, architecture, etc.