From 27cfad5bda22a447fbdca0d0519539dcceea4dab Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Oct 19 2010 23:35:12 +0000 Subject: Update render_doIdentityImages.sh - Before this commit, if an external file didn't exist, the centos-art.sh script just printed a message and continue processing the file which provoked inkscape to print an error similar to the following: --- ** (inkscape:17154): WARNING **: did not resolve to a valid image file (base dir is /tmp), now trying sodipodi:absref="/home/centos/artwork/trunk/Identity/Themes/Motifs/TreeFlower/Backgrounds/Img/800x600.png" --- - In this commit, we solve this issue adding a verification after external file checking. If the file is not found, we stop script execution and print a message to know more about why the script stoped execution. --- diff --git a/Scripts/Bash/Functions/Render/render_doIdentityImages.sh b/Scripts/Bash/Functions/Render/render_doIdentityImages.sh index 1324f7c..b065712 100644 --- a/Scripts/Bash/Functions/Render/render_doIdentityImages.sh +++ b/Scripts/Bash/Functions/Render/render_doIdentityImages.sh @@ -78,6 +78,9 @@ function render_doIdentityImages { | sed -r 's!".*$!!' | uniq) for EXTERNALFILE in $EXTERNALFILES;do cli_checkFiles $EXTERNALFILE + if [[ $? -ne 0 ]];then + cli_printMessage "$(caller)" 'AsToKnowMoreLine' + fi done # Render template instance and modify the inkscape output to