From 1200298db99597c567f0e06131941b48aae3f8da Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jan 17 2014 15:39:55 +0000 Subject: Add workplace verification before render content. - Previously, render module didn't verify whether the working directory was a supported working directory or not. As consequence, variable expansion inside configuration files at render time might be expanded to a value different from that expected. This update changes the render module to verify the workplace before render any content. The main problem solved here is the correct expansion of TCAR_WORKDIR variable value. If the working directory isn't verified, and this value isn't retrieved from the configuration file inside it, TCAR_WORKDIR is expanded to its default value which might be not the place where your working directory is really stored in. As consequence, automation script will try to take content from a place that might not exist, making the automation scripts to fail at some point. --- diff --git a/Scripts/Modules/Render/render.sh b/Scripts/Modules/Render/render.sh index bfd40dd..b4e6478 100755 --- a/Scripts/Modules/Render/render.sh +++ b/Scripts/Modules/Render/render.sh @@ -26,9 +26,11 @@ # Standardize content rendition. function render { + tcar_checkWorkplace + # Define flag to control whether final content is produced inside # locale directories or not. - LOACLE_FLAG_NO_LOCALE='false' + LOCALE_FLAG_NO_LOCALE='false' # Interpret arguments and options passed through command-line. render_getOptions