From 15662d063fcc35a293fcb9f69ea655a089b8a611 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Mar 16 2011 00:21:51 +0000 Subject: Update render_getDirOutput.sh: - Make use of Img/ directory optional. If no Img/ directory is found in the target directory structure, images will be stored directly in the target directory. However, if the Img/ directory does exist, images will be stored inside it. So, be sure to create the Img/ directory wherever you want to use it, before rendering content. --- diff --git a/Scripts/Bash/Cli/Functions/Render/render_getDirOutput.sh b/Scripts/Bash/Cli/Functions/Render/render_getDirOutput.sh index 9356d3b..62f1b95 100644 --- a/Scripts/Bash/Cli/Functions/Render/render_getDirOutput.sh +++ b/Scripts/Bash/Cli/Functions/Render/render_getDirOutput.sh @@ -28,12 +28,17 @@ function render_getDirOutput { # 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. + # reference. OUTPUT=$(dirname $FILE | sed -r \ -e "s!/Models/${FLAG_THEME_MODEL}!/Motifs/$(cli_getPathComponent "$ACTIONVAL" "--theme")!" \ - -e "s!/Tpl!/Img!") + -e "s!/Tpl!!") + + # 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 # Redefine base output directory to introduce specific information # like release number, architecture, etc.