From 16ab655b22fd53feb35cae85a41212250f104c74 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jan 16 2011 02:53:48 +0000 Subject: Update render_doIdentityImageDm.sh: - Fix verification of image (Img/) and tar.gz (Tgz/) directories. If they don't exist, then create them. There is no need to stop processing nor asking for creation (which is another way to stop processing). Both Img/ and Tgz/ directories are part of both GDM and KDM directory structures, so there might be no problem if we create them directly, specially if you want to save yourself some typing doing things that render_doIdentityImageDm.sh can do for you ;). --- diff --git a/Scripts/Bash/Functions/Render/render_doIdentityImageDm.sh b/Scripts/Bash/Functions/Render/render_doIdentityImageDm.sh index 64495ac..f9670bc 100755 --- a/Scripts/Bash/Functions/Render/render_doIdentityImageDm.sh +++ b/Scripts/Bash/Functions/Render/render_doIdentityImageDm.sh @@ -125,14 +125,20 @@ function render_doIdentityImageDm { # Define directory to store release-specific images. IMG=$ACTIONVAL/$VERSION/Img - # Check existence of release-specific image directory. - cli_checkFiles "$IMG" 'd' + # Check existence of release-specific image directory. If it + # doesn't exist, create it. + if [[ ! -d $IMG ]];then + mkdir -p $IMG + fi # Define directory to store release-specific tar.gz files. TGZ=$ACTIONVAL/$VERSION/Tgz - # Check existence of release-specific tar.gz directory. - cli_checkFiles "$TGZ" 'd' + # Check existence of release-specific tar.gz directory. If + # it doesn't exist, create it. + if [[ ! -d $TGZ ]];then + mkdir -p $TGZ + fi # Move into working directory. pushd $TGZ > /dev/null